Public | Automated Build

Last pushed: 2 years ago
Short Description
Setup a Sync Gateway + Couchbase Server test cluster for functional and performance testing purposes
Full Description

Run docker image

$ docker run -ti tleyden5iwx/sync-gateway-testcluster /bin/bash

The rest of the steps should be run inside the running docker container.

Clone repo

$ cd /opt
$ git clone
$ cd sync-gateway-tests/distributed_index_tests

Create Ansible Inventory and push ssh keys

$ ssh-keygen
$ python conf/  --install-keys=id_rsa --ini-file=conf/hosts.ini

Running tests

See distributed_index_tests/ in this repo for more information

Capturing network traffic

From the Linux Host where docker is running

$ yum install -y tcpdump
$ tcpdump -i docker0 -w /tmp/docker.pcap port 4984

Now, get the file to your OSX host and open it in Wireshark. It should contain all HTTP traffic between the test suite and the sync gateway machines.

Docker Pull Command