From 85ba11d986955d72f65339e5d4d7a7737b66af02 Mon Sep 17 00:00:00 2001 From: cesine Date: Tue, 7 Dec 2021 14:45:52 +0100 Subject: [PATCH 1/3] add more databases from https://github.com/FieldDB/FieldDB/blob/master/scripts/build_template_databases_using_fielddb.sh --- test/integration/install.js | 157 ++++++++++++++++++++++++++++++++++-- 1 file changed, 152 insertions(+), 5 deletions(-) diff --git a/test/integration/install.js b/test/integration/install.js index 36a99574..3da80063 100644 --- a/test/integration/install.js +++ b/test/integration/install.js @@ -138,6 +138,114 @@ describe('install', () => { }); }); + describe('new_gamify_corpus', () => { + before(() => supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json') + .then((res) => { + expect(res.body).includes('_users', JSON.stringify(res.body)); + })); + + it('should replicate new_gamify_corpus', () => { + const dbnameToReplicate = 'new_gamify_corpus'; + + return supertest(destination) + .post('/_replicate') + .set('Accept', 'application/json') + .send({ + source: `${source}/${dbnameToReplicate}`, + target: { + url: `${destination}/${dbnameToReplicate}`, + }, + create_target: true, + }) + .then((res) => { + debug('res.body new_gamify_corpus', res.body); + expect(res.body.ok).to.equal(true); + + return supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json'); + }) + .then((res) => { + debug('res.body new_gamify_corpus after', res.body); + expect(res.body).includes(dbnameToReplicate); + }); + }); + }); + + describe('new_learnx_corpus', () => { + before(() => supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json') + .then((res) => { + expect(res.body).includes('_users', JSON.stringify(res.body)); + })); + + it('should replicate new_learnx_corpus', () => { + const dbnameToReplicate = 'new_learnx_corpus'; + + return supertest(destination) + .post('/_replicate') + .set('Accept', 'application/json') + .send({ + source: `${source}/${dbnameToReplicate}`, + target: { + url: `${destination}/${dbnameToReplicate}`, + }, + create_target: true, + }) + .then((res) => { + debug('res.body new_learnx_corpus', res.body); + expect(res.body.ok).to.equal(true); + + return supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json'); + }) + .then((res) => { + debug('res.body new_learnx_corpus after', res.body); + expect(res.body).includes(dbnameToReplicate); + }); + }); + }); + + describe('new_wordcloud_corpus', () => { + before(() => supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json') + .then((res) => { + expect(res.body).includes('_users', JSON.stringify(res.body)); + })); + + it('should replicate new_wordcloud_corpus', () => { + const dbnameToReplicate = 'new_wordcloud_corpus'; + + return supertest(destination) + .post('/_replicate') + .set('Accept', 'application/json') + .send({ + source: `${source}/${dbnameToReplicate}`, + target: { + url: `${destination}/${dbnameToReplicate}`, + }, + create_target: true, + }) + .then((res) => { + debug('res.body new_wordcloud_corpus', res.body); + expect(res.body.ok).to.equal(true); + + return supertest(destination) + .get('/_all_dbs') + .set('Accept', 'application/json'); + }) + .then((res) => { + debug('res.body new_wordcloud_corpus after', res.body); + expect(res.body).includes(dbnameToReplicate); + }); + }); + }); + describe('new_testing_corpus', () => { before(() => supertest(destination) .get('/_all_dbs') @@ -334,7 +442,7 @@ describe('install', () => { }); }); - describe('new_lexicon', () => { + describe('new_export', () => { before(() => supertest(destination) .get('/_all_dbs') .set('Accept', 'application/json') @@ -342,8 +450,8 @@ describe('install', () => { expect(res.body).includes('_users', JSON.stringify(res.body)); })); - it('should replicate new_lexicon', () => { - const dbnameToReplicate = 'new_lexicon'; + it('should replicate new_export', () => { + const dbnameToReplicate = 'new_export'; return supertest(destination) .post('/_replicate') @@ -356,7 +464,7 @@ describe('install', () => { create_target: true, }) .then((res) => { - debug('res.body new_lexicon', res.body); + debug('res.body new_export', res.body); expect(res.body.ok).to.equal(true); return supertest(destination) @@ -364,9 +472,48 @@ describe('install', () => { .set('Accept', 'application/json'); }) .then((res) => { - debug('res.body new_lexicon after ', res.body); + debug('res.body new_export after ', res.body); expect(res.body).includes(dbnameToReplicate); }); }); }); + + describe('online prototype', () => { + /** + * note: unable to login and use the prototype because it is not using https in the docker container + * and the app expects and requires https + */ + it('should replicate prototype', () => { + const dbnameToReplicate = 'prototype'; + + return supertest(destination) + .post('/_replicate') + .set('Accept', 'application/json') + .send({ + source: `${source}/${dbnameToReplicate}`, + target: { + url: `${destination}/${dbnameToReplicate}`, + }, + create_target: true, + }) + .then((res) => { + expect(res.body.ok).to.equal(true); + + return supertest(destination) + .get(`/${dbnameToReplicate}/_design/prototype`) + .set('Accept', 'application/json'); + }) + .then((res) => { + debug('res.body prototype after ', res.body); + expect(res.body.couchapp && res.body.couchapp.name).to.equal("LingSync Prototype (has the most features of the apps)", JSON.stringify(res.body)); + + return supertest(destination) + .get(`/${dbnameToReplicate}/_design/prototype/user.html`) + }) + .then((res) => { + debug('res.body prototype after ', res.body); + expect(res.status).to.equal(200); + }); + }); + }); }); From 1ab147faf7f5c2b9cf8036e2154e56a644c18172 Mon Sep 17 00:00:00 2001 From: cesine Date: Tue, 18 Jan 2022 19:43:32 -0500 Subject: [PATCH 2/3] fix lint --- test/integration/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/install.js b/test/integration/install.js index 3da80063..4bd9275d 100644 --- a/test/integration/install.js +++ b/test/integration/install.js @@ -505,10 +505,10 @@ describe('install', () => { }) .then((res) => { debug('res.body prototype after ', res.body); - expect(res.body.couchapp && res.body.couchapp.name).to.equal("LingSync Prototype (has the most features of the apps)", JSON.stringify(res.body)); + expect(res.body.couchapp && res.body.couchapp.name).to.equal('LingSync Prototype (has the most features of the apps)', JSON.stringify(res.body)); return supertest(destination) - .get(`/${dbnameToReplicate}/_design/prototype/user.html`) + .get(`/${dbnameToReplicate}/_design/prototype/user.html`); }) .then((res) => { debug('res.body prototype after ', res.body); From 015b8e74615ad906513a85a73db6a2355e23eecf Mon Sep 17 00:00:00 2001 From: cesine Date: Mon, 8 Dec 2025 14:59:32 -0500 Subject: [PATCH 3/3] record new requests by removing _all_dbs because it is replaying it even when recording --- .github/workflows/docker-image.yml | 2 +- .../replay/localhost-5984/163770998592610200 | 13 ------ .../replay/localhost-5984/176522321929391536 | 17 +++++++ .../replay/localhost-5984/176522369757221952 | 17 +++++++ .../replay/localhost-5984/176522373066491387 | 17 +++++++ .../replay/localhost-5984/17652237884112891 | 17 +++++++ .../replay/localhost-5984/176522383624990136 | 16 +++++++ .../replay/localhost-5984/176522423244265422 | 17 +++++++ .../replay/localhost-5984/176522423245686959 | 45 +++++++++++++++++++ test/integration/install.js | 6 +-- 10 files changed, 149 insertions(+), 18 deletions(-) delete mode 100644 test/fixtures/replay/localhost-5984/163770998592610200 create mode 100644 test/fixtures/replay/localhost-5984/176522321929391536 create mode 100644 test/fixtures/replay/localhost-5984/176522369757221952 create mode 100644 test/fixtures/replay/localhost-5984/176522373066491387 create mode 100644 test/fixtures/replay/localhost-5984/17652237884112891 create mode 100644 test/fixtures/replay/localhost-5984/176522383624990136 create mode 100644 test/fixtures/replay/localhost-5984/176522423244265422 create mode 100644 test/fixtures/replay/localhost-5984/176522423245686959 diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e3d31362..c7efa378 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,7 +8,7 @@ on: jobs: - build: + docker: runs-on: ubuntu-latest diff --git a/test/fixtures/replay/localhost-5984/163770998592610200 b/test/fixtures/replay/localhost-5984/163770998592610200 deleted file mode 100644 index 4178e52e..00000000 --- a/test/fixtures/replay/localhost-5984/163770998592610200 +++ /dev/null @@ -1,13 +0,0 @@ -GET /_all_dbs -accept-encoding: gzip, deflate -accept: application/json -authorization: Basic YWRtaW46bm9uZQ== - -HTTP/1.1 200 OK -server: CouchDB/1.6.1 (Erlang OTP/17) -date: Tue, 23 Nov 2021 23:26:25 GMT -content-type: application/json -content-length: 4590 -cache-control: must-revalidate - -["_replicator","_users","jenkins-activity_feed","jenkins-firstcorpus","jenkins-firstcorpus-activity_feed","lingllama-activity_feed","lingllama-firstcorpus","lingllama-firstcorpus-activity_feed","new_corpus","new_corpus_activity_feed","new_lexicon","new_testing_corpus","new_user_activity_feed","test1637687494585-activity_feed","test1637687494585-kartuli","test1637687494585-kartuli-activity_feed","test1637687552717-activity_feed","test1637687552717-kartuli","test1637687552717-kartuli-activity_feed","test1637687552717-testing_v3_32_011637687601906","test1637687552717-testing_v3_32_011637687601906-activity_feed","test1637687657135-activity_feed","test1637687657135-kartuli","test1637687657135-kartuli-activity_feed","test1637687657135-testing_v3_32_011637687679288","test1637687657135-testing_v3_32_011637687679288-activity_feed","test1637687792911-activity_feed","test1637687792911-kartuli","test1637687792911-kartuli-activity_feed","test1637687792911-testing_v3_32_011637687815173","test1637687792911-testing_v3_32_011637687815173-activity_feed","test1637688148080-activity_feed","test1637688148080-kartuli","test1637688148080-kartuli-activity_feed","test1637688148080-testing_v3_32_011637688170319","test1637688148080-testing_v3_32_011637688170319-activity_feed","test1637705321543-activity_feed","test1637705321543-kartuli","test1637705321543-kartuli-activity_feed","test1637705321543-testing_v3_32_011637705344508","test1637705321543-testing_v3_32_011637705344508-activity_feed","test1637705489099-activity_feed","test1637705489099-kartuli","test1637705489099-kartuli-activity_feed","test1637705489099-testing_v3_32_011637705511281","test1637705489099-testing_v3_32_011637705511281-activity_feed","test1637705572790-activity_feed","test1637705572790-kartuli","test1637705572790-kartuli-activity_feed","test1637705572790-testing_v3_32_011637705595498","test1637705572790-testing_v3_32_011637705595498-activity_feed","test1637705616668-activity_feed","test1637705616668-kartuli","test1637705616668-kartuli-activity_feed","test1637705616668-testing_v3_32_011637705639461","test1637705616668-testing_v3_32_011637705639461-activity_feed","test1637705965013-activity_feed","test1637705965013-kartuli","test1637705965013-kartuli-activity_feed","test1637706491154-activity_feed","test1637706491154-kartuli","test1637706491154-kartuli-activity_feed","test1637706491154-testing_v3_32_011637706497809","test1637706491154-testing_v3_32_011637706497809-activity_feed","test1637706691011-activity_feed","test1637706691011-kartuli","test1637706691011-kartuli-activity_feed","test1637706691011-testing_v3_32_011637706700780","test1637706691011-testing_v3_32_011637706700780-activity_feed","testingdisabledusers-activity_feed","testingdisabledusers-firstcorpus","testingdisabledusers-firstcorpus-activity_feed","testingphophlo-activity_feed","testingphophlo-phophlo","testingphophlo-phophlo-activity_feed","testingprototype-activity_feed","testingprototype-firstcorpus","testingprototype-firstcorpus-activity_feed","testingspreadsheet-activity_feed","testingspreadsheet-firstcorpus","testingspreadsheet-firstcorpus-activity_feed","testinguserwithemail-activity_feed","testinguserwithemail-firstcorpus","testinguserwithemail-firstcorpus-activity_feed","testuser-firstcorpus","testuser-firstcorpus-activity_feed","testuser-two","testuser-two-activity_feed","testuser1-activity_feed","testuser1-firstcorpus","testuser1-firstcorpus-activity_feed","testuser10-activity_feed","testuser10-firstcorpus","testuser10-firstcorpus-activity_feed","testuser2-activity_feed","testuser2-firstcorpus","testuser2-firstcorpus-activity_feed","testuser3-activity_feed","testuser3-firstcorpus","testuser3-firstcorpus-activity_feed","testuser4-activity_feed","testuser4-firstcorpus","testuser4-firstcorpus-activity_feed","testuser41-activity_feed","testuser41-firstcorpus","testuser41-firstcorpus-activity_feed","testuser5-activity_feed","testuser5-firstcorpus","testuser5-firstcorpus-activity_feed","testuser6-activity_feed","testuser6-firstcorpus","testuser6-firstcorpus-activity_feed","testuser6-testing_v3_32_01","testuser6-testing_v3_32_01-activity_feed","testuser7-activity_feed","testuser7-firstcorpus","testuser7-firstcorpus-activity_feed","testuser7-georgian","testuser7-georgian-activity_feed","testuser8-activity_feed","testuser8-an_offline_corpus_created_in_the_prototype","testuser8-an_offline_corpus_created_in_the_prototype-activity_feed","testuser8-firstcorpus","testuser8-firstcorpus-activity_feed","testuser9-activity_feed","testuser9-firstcorpus","testuser9-firstcorpus-activity_feed","theuserscouch"] diff --git a/test/fixtures/replay/localhost-5984/176522321929391536 b/test/fixtures/replay/localhost-5984/176522321929391536 new file mode 100644 index 00000000..f93e7b36 --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522321929391536 @@ -0,0 +1,17 @@ +POST /_replicate +accept-encoding: gzip, deflate +accept: application/json +content-type: application/json +authorization: Basic YWRtaW46bm9uZQ== +body: {\"source\":\"https://public:none@corpusdev.example.org/new_gamify_corpus\",\"target\":{\"url\":\"http://admin:none@localhost:5984/new_gamify_corpus\"},\"create_target\":true} + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-length: 442 +content-type: application/json +date: Mon, 08 Dec 2025 19:46:59 GMT +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: 26a72e1612 +x-couchdb-body-time: 0 + +{"ok":true,"session_id":"8cefc5f8d993691c2d9918015a070aff","source_last_seq":8,"replication_id_version":4,"history":[{"session_id":"8cefc5f8d993691c2d9918015a070aff","start_time":"Mon, 08 Dec 2025 19:46:53 GMT","end_time":"Mon, 08 Dec 2025 19:46:59 GMT","start_last_seq":0,"end_last_seq":8,"recorded_seq":8,"missing_checked":9,"missing_found":9,"docs_read":9,"docs_written":9,"doc_write_failures":0,"bulk_get_docs":0,"bulk_get_attempts":1}]} diff --git a/test/fixtures/replay/localhost-5984/176522369757221952 b/test/fixtures/replay/localhost-5984/176522369757221952 new file mode 100644 index 00000000..40c21f4c --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522369757221952 @@ -0,0 +1,17 @@ +POST /_replicate +accept-encoding: gzip, deflate +accept: application/json +content-type: application/json +authorization: Basic YWRtaW46bm9uZQ== +body: {\"source\":\"https://public:none@corpusdev.example.org/new_learnx_corpus\",\"target\":{\"url\":\"http://admin:none@localhost:5984/new_learnx_corpus\"},\"create_target\":true} + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-length: 442 +content-type: application/json +date: Mon, 08 Dec 2025 19:54:57 GMT +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: b35c7b7414 +x-couchdb-body-time: 0 + +{"ok":true,"session_id":"7d6c04683e3187c47f127aa8a3c7aecf","source_last_seq":8,"replication_id_version":4,"history":[{"session_id":"7d6c04683e3187c47f127aa8a3c7aecf","start_time":"Mon, 08 Dec 2025 19:54:53 GMT","end_time":"Mon, 08 Dec 2025 19:54:57 GMT","start_last_seq":0,"end_last_seq":8,"recorded_seq":8,"missing_checked":9,"missing_found":9,"docs_read":9,"docs_written":9,"doc_write_failures":0,"bulk_get_docs":0,"bulk_get_attempts":1}]} diff --git a/test/fixtures/replay/localhost-5984/176522373066491387 b/test/fixtures/replay/localhost-5984/176522373066491387 new file mode 100644 index 00000000..89d130cd --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522373066491387 @@ -0,0 +1,17 @@ +POST /_replicate +accept-encoding: gzip, deflate +accept: application/json +content-type: application/json +authorization: Basic YWRtaW46bm9uZQ== +body: {\"source\":\"https://public:none@corpusdev.example.org/new_wordcloud_corpus\",\"target\":{\"url\":\"http://admin:none@localhost:5984/new_wordcloud_corpus\"},\"create_target\":true} + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-length: 442 +content-type: application/json +date: Mon, 08 Dec 2025 19:55:30 GMT +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: 3f46b21904 +x-couchdb-body-time: 0 + +{"ok":true,"session_id":"4c5d130917834aa0f25c14a7ba02f416","source_last_seq":1,"replication_id_version":4,"history":[{"session_id":"4c5d130917834aa0f25c14a7ba02f416","start_time":"Mon, 08 Dec 2025 19:55:27 GMT","end_time":"Mon, 08 Dec 2025 19:55:30 GMT","start_last_seq":0,"end_last_seq":1,"recorded_seq":1,"missing_checked":1,"missing_found":1,"docs_read":1,"docs_written":1,"doc_write_failures":0,"bulk_get_docs":0,"bulk_get_attempts":0}]} diff --git a/test/fixtures/replay/localhost-5984/17652237884112891 b/test/fixtures/replay/localhost-5984/17652237884112891 new file mode 100644 index 00000000..4f2bd4d8 --- /dev/null +++ b/test/fixtures/replay/localhost-5984/17652237884112891 @@ -0,0 +1,17 @@ +POST /_replicate +accept-encoding: gzip, deflate +accept: application/json +content-type: application/json +authorization: Basic YWRtaW46bm9uZQ== +body: {\"source\":\"https://public:none@corpusdev.example.org/new_export\",\"target\":{\"url\":\"http://admin:none@localhost:5984/new_export\"},\"create_target\":true} + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-length: 442 +content-type: application/json +date: Mon, 08 Dec 2025 19:56:28 GMT +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: e01254f566 +x-couchdb-body-time: 0 + +{"ok":true,"session_id":"e285a3e35174e8737ac1ff41cb094766","source_last_seq":1,"replication_id_version":4,"history":[{"session_id":"e285a3e35174e8737ac1ff41cb094766","start_time":"Mon, 08 Dec 2025 19:56:24 GMT","end_time":"Mon, 08 Dec 2025 19:56:28 GMT","start_last_seq":0,"end_last_seq":1,"recorded_seq":1,"missing_checked":1,"missing_found":1,"docs_read":1,"docs_written":1,"doc_write_failures":0,"bulk_get_docs":0,"bulk_get_attempts":0}]} diff --git a/test/fixtures/replay/localhost-5984/176522383624990136 b/test/fixtures/replay/localhost-5984/176522383624990136 new file mode 100644 index 00000000..5449eaa5 --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522383624990136 @@ -0,0 +1,16 @@ +GET /_all_dbs +accept-encoding: gzip, deflate +accept: application/json +authorization: Basic YWRtaW46bm9uZQ== + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-type: application/json +date: Mon, 08 Dec 2025 19:57:16 GMT +etag: "BGGQGQC6DKQ0U7XSB3IKI7IZT" +server: CouchDB/3.5.1 (Erlang OTP/26) +transfer-encoding: chunked +x-couch-request-id: 8600f3a758 +x-couchdb-body-time: 0 + +["_replicator","_users","jenkins-activity_feed","jenkins-firstcorpus","jenkins-firstcorpus-activity_feed","lingllama-activity_feed","lingllama-firstcorpus","lingllama-firstcorpus-activity_feed","new_corpus","new_corpus_activity_feed","new_export","new_gamify_corpus","new_learnx_corpus","new_lexicon","new_testing_corpus","new_user_activity_feed","new_wordcloud_corpus","prototype","test1765222126609-activity_feed","test1765222126609-an_offline_corpus_created_in_the_prototype1765222126612","test1765222126609-an_offline_corpus_created_in_the_prototype1765222126612-activity_feed","test1765222126609-firstcorpus","test1765222126609-firstcorpus-activity_feed","test1765222126609-kartuli","test1765222126609-kartuli-activity_feed","test1765222126609-testing_v3_32_011765222346800","test1765222126609-testing_v3_32_011765222346800-activity_feed","test1765223443443-activity_feed","test1765223443443-an_offline_corpus_created_in_the_prototype1765223443445","test1765223443443-an_offline_corpus_created_in_the_prototype1765223443445-activity_feed","test1765223443443-firstcorpus","test1765223443443-firstcorpus-activity_feed","test1765223443443-kartuli","test1765223443443-kartuli-activity_feed","test1765223443443-testing_v3_32_011765223458273","test1765223443443-testing_v3_32_011765223458273-activity_feed","testingdisabledusers-activity_feed","testingdisabledusers-firstcorpus","testingdisabledusers-firstcorpus-activity_feed","testingphophlo-activity_feed","testingphophlo-phophlo","testingphophlo-phophlo-activity_feed","testingprototype-activity_feed","testingprototype-firstcorpus","testingprototype-firstcorpus-activity_feed","testingspreadsheet-activity_feed","testingspreadsheet-firstcorpus","testingspreadsheet-firstcorpus-activity_feed","testinguserwithemail-activity_feed","testinguserwithemail-firstcorpus","testinguserwithemail-firstcorpus-activity_feed","testuser1-activity_feed","testuser1-firstcorpus","testuser1-firstcorpus-activity_feed","testuser10-activity_feed","testuser10-firstcorpus","testuser10-firstcorpus-activity_feed","testuser2-activity_feed","testuser2-firstcorpus","testuser2-firstcorpus-activity_feed","testuser3-activity_feed","testuser3-firstcorpus","testuser3-firstcorpus-activity_feed","testuser4-activity_feed","testuser4-firstcorpus","testuser4-firstcorpus-activity_feed","testuser41-activity_feed","testuser41-firstcorpus","testuser41-firstcorpus-activity_feed","testuser5-activity_feed","testuser5-firstcorpus","testuser5-firstcorpus-activity_feed","testuser6-activity_feed","testuser6-firstcorpus","testuser6-firstcorpus-activity_feed","testuser6-testing_v3_32_01","testuser6-testing_v3_32_01-activity_feed","testuser7-activity_feed","testuser7-firstcorpus","testuser7-firstcorpus-activity_feed","testuser7-georgian","testuser7-georgian-activity_feed","testuser9-activity_feed","testuser9-firstcorpus","testuser9-firstcorpus-activity_feed","theuserscouch"] diff --git a/test/fixtures/replay/localhost-5984/176522423244265422 b/test/fixtures/replay/localhost-5984/176522423244265422 new file mode 100644 index 00000000..1b5da24b --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522423244265422 @@ -0,0 +1,17 @@ +POST /_replicate +accept-encoding: gzip, deflate +accept: application/json +content-type: application/json +authorization: Basic YWRtaW46bm9uZQ== +body: {\"source\":\"https://public:none@corpusdev.example.org/prototype\",\"target\":{\"url\":\"http://admin:none@localhost:5984/prototype\"},\"create_target\":true} + +HTTP/1.1 200 OK +cache-control: must-revalidate +content-length: 460 +content-type: application/json +date: Mon, 08 Dec 2025 20:03:52 GMT +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: f5f83f9044 +x-couchdb-body-time: 0 + +{"ok":true,"no_changes":true,"session_id":"fb158a7488551f7d52491228ddaa11c7","source_last_seq":1,"replication_id_version":4,"history":[{"session_id":"fb158a7488551f7d52491228ddaa11c7","start_time":"Mon, 08 Dec 2025 19:28:30 GMT","end_time":"Mon, 08 Dec 2025 19:28:35 GMT","start_last_seq":0,"end_last_seq":1,"recorded_seq":1,"missing_checked":1,"missing_found":1,"docs_read":1,"docs_written":1,"doc_write_failures":0,"bulk_get_docs":0,"bulk_get_attempts":0}]} diff --git a/test/fixtures/replay/localhost-5984/176522423245686959 b/test/fixtures/replay/localhost-5984/176522423245686959 new file mode 100644 index 00000000..b408dde0 --- /dev/null +++ b/test/fixtures/replay/localhost-5984/176522423245686959 @@ -0,0 +1,45 @@ +GET /prototype/_design/prototype/user.html +accept-encoding: gzip, deflate +authorization: Basic YWRtaW46bm9uZQ== + +HTTP/1.1 200 OK +accept-ranges: none +cache-control: must-revalidate +content-security-policy: sandbox +content-type: text/html +date: Mon, 08 Dec 2025 20:03:52 GMT +etag: "+itkiZDS3GHzHgjTjOi3SA==" +server: CouchDB/3.5.1 (Erlang OTP/26) +x-couch-request-id: d8b7c6fe31 +x-couchdb-body-time: 0 + + + + +LingSync - Choose a corpus + + + + + + + + + + + + + +
+
+ + + + + + + + + + diff --git a/test/integration/install.js b/test/integration/install.js index b420cd2f..054a4853 100644 --- a/test/integration/install.js +++ b/test/integration/install.js @@ -519,16 +519,14 @@ describe('install', () => { return supertest(destination) .get(`/${dbnameToReplicate}/_design/prototype`) - .set('cookie', adminSessionCookie) .set('Accept', 'application/json'); }) .then((res) => { debug('res.body prototype after ', res.body); - expect(res.body.couchapp && res.body.couchapp.name).to.equal('LingSync Prototype (has the most features of the apps)', JSON.stringify(res.body)); + expect(res.body.couchapp && res.body.couchapp.name).to.contain('Prototype (has the most features of the apps)', JSON.stringify(res.body)); return supertest(destination) - .get(`/${dbnameToReplicate}/_design/prototype/user.html`) - .set('cookie', adminSessionCookie); + .get(`/${dbnameToReplicate}/_design/prototype/user.html`); }) .then((res) => { debug('res.body prototype after ', res.body);