Skip to content

Commit 530cc60

Browse files
authored
switch to CouchDB 3 for the Travis tests - no admin party in CouchDB 3 (#207)
1 parent befbcd9 commit 530cc60

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

scripts/run_couchdb_on_travis.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
if [ ! -z $TRAVIS ]; then
44
# Install CouchDB Master
5-
echo "Starting CouchDB 2.0 Docker"
6-
docker run --ulimit nofile=2048:2048 -d -p 5984:5984 couchdb --with-haproxy \
7-
--with-admin-party-please -n 1
5+
echo "Starting CouchDB 3 Docker"
6+
docker run --ulimit nofile=2048:2048 -d -p 5984:5984 \
7+
--env COUCHDB_USER=admin --env COUCHDB_PASSWORD=admin \
8+
couchdb --with-haproxy -n 1
89

910
# wait for couchdb to start
10-
while [ '200' != $(curl -s -o /dev/null -w %{http_code} http://127.0.0.1:5984) ]; do
11+
while [ '200' != $(curl -s -o /dev/null -w %{http_code} http://admin:admin@127.0.0.1:5984/_all_dbs) ]; do
1112
echo waiting for couch to load... ;
1213
sleep 1;
1314
done

scripts/stop_couchdb_on_travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
if [ ! -z $TRAVIS ]; then
4-
echo "Stopping CouchDB 2.0 Docker"
4+
echo "Stopping CouchDB 3 Docker"
55
docker stop $(docker ps -a -q)
66
docker rm $(docker ps -a -q)
77
fi

test/notnocked.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// the License.
1212

1313
const Nano = require('..')
14-
const COUCH_URL = 'http://localhost:5984'
14+
const COUCH_URL = 'http://admin:admin@localhost:5984'
1515
const nano = Nano(COUCH_URL)
1616
const dbName = 'notnocked' + new Date().getTime()
1717
let db

0 commit comments

Comments
 (0)