diff --git a/Dockerfile-couchdb b/Dockerfile-couchdb index b26ae840..1fdd4ef0 100644 --- a/Dockerfile-couchdb +++ b/Dockerfile-couchdb @@ -1,4 +1,4 @@ -FROM couchdb:3.1.2 +FROM couchdb:3.5.1 WORKDIR / diff --git a/test/integration/install.js b/test/integration/install.js index 772fc8da..5a3b3673 100644 --- a/test/integration/install.js +++ b/test/integration/install.js @@ -230,7 +230,7 @@ describe('install', () => { }) .then((res) => { debug('res.body prototype couchapp', res.body); - expect(res.body.couchapp.name).to.equal(' Prototype (has the most features of the apps)', JSON.stringify(res.body)); + expect(res.body.couchapp.name).to.contain(' Prototype (has the most features of the apps)', JSON.stringify(res.body)); }); }); }); @@ -378,15 +378,17 @@ describe('install', () => { }) .then((res) => { debug('res.body new_lexicon', res.body); - expect(res.body.ok).to.equal(true); + expect(res.body.ok).to.equal(true, JSON.stringify(res.body)); return supertest(destination) - .get('/_all_dbs') + .get(`/${dbnameToReplicate}/_design/lexicon/_view/lexiconNodes?group=true`) .set('Accept', 'application/json'); }) .then((res) => { debug('res.body new_lexicon after ', res.body); - expect(res.body).includes(dbnameToReplicate); + expect(res.body).to.deep.equal({ + rows: [], + }, JSON.stringify(res.body)); }); }); }); diff --git a/test/routes/deprecated-spec.js b/test/routes/deprecated-spec.js index d9eb651e..5cc8b20c 100644 --- a/test/routes/deprecated-spec.js +++ b/test/routes/deprecated-spec.js @@ -552,9 +552,9 @@ describe('/ deprecated', () => { describe('/addroletouser', () => { before(function () { - debug('/forgotpassword', process.env.REPLAY); + debug('/addroletouser', process.env.REPLAY); - this.timeout(19000); + this.timeout(149000); return supertest(authWebService) .post('/register') @@ -1311,9 +1311,9 @@ describe('/ deprecated', () => { describe('/newcorpus', () => { before(function () { - debug('/forgotpassword', process.env.REPLAY); + debug('/newcorpus', process.env.REPLAY); - this.timeout(40000); + this.timeout(140000); return supertest(authWebService) .post('/register') @@ -1508,7 +1508,7 @@ describe('/ deprecated', () => { describe('syncDetails', () => { const uniqueDBname = process.env.REPLAY ? Date.now() : '1637871012346'; before(function () { - debug('/forgotpassword', process.env.REPLAY); + debug('/syncDetails', process.env.REPLAY); this.timeout(40000); return supertest(authWebService)