Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9eec8fc

Browse files
committedFeb 24, 2025
Use special domains for replication tests
Per RFC6761, these special domain names are reserved which guarantees CI or local runs won't be sending network requests for these test URLs.
1 parent e7f7591 commit 9eec8fc

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed
 

‎app/addons/replication/tests/nightwatch/replication.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ module.exports = {
142142

143143
const replicatorDoc = {
144144
_id: 'existing-doc-id',
145-
source: "http://source-db.com",
146-
target: "http://target-db.com"
145+
source: "http://source-db.com.test",
146+
target: "http://target-db.com.test"
147147
};
148148

149149
client

‎app/addons/replication/tests/nightwatch/replicationactivity.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = {
1919

2020
const replicatorDoc = {
2121
_id: 'existing-doc-id-view-doc',
22-
source: "https://source-db.com",
23-
target: "https://target-db.com"
22+
source: "https://source-db.com.test",
23+
target: "https://target-db.com.test"
2424
};
2525
client
2626
.deleteDatabase('_replicator')
@@ -43,8 +43,8 @@ module.exports = {
4343

4444
const replicatorDoc = {
4545
_id: 'existing-doc-id-edit-doc',
46-
source: "https://source-db.com",
47-
target: "https://target-db.com"
46+
source: "https://source-db.com.test",
47+
target: "https://target-db.com.test"
4848
};
4949
client
5050
.deleteDatabase('_replicator')
@@ -68,14 +68,14 @@ module.exports = {
6868

6969
const replicatorDoc1 = {
7070
_id: 'existing-doc-id-filter1',
71-
source: "https://source-db.com",
72-
target: "https://target-db.com"
71+
source: "https://source-db.com.test",
72+
target: "https://target-db.com.test"
7373
};
7474

7575
const replicatorDoc2 = {
7676
_id: 'existing-doc-filter2',
77-
source: "https://source-db2.com",
78-
target: "https://target-db.com"
77+
source: "https://source-db2.com.test",
78+
target: "https://target-db.com.test"
7979
};
8080
client
8181
.deleteDatabase('_replicator')
@@ -102,14 +102,14 @@ module.exports = {
102102

103103
const replicatorDoc1 = {
104104
_id: 'existing-doc-id-filter1',
105-
source: "https://source-db.com",
106-
target: "https://target-db.com"
105+
source: "https://source-db.com.test",
106+
target: "https://target-db.com.test"
107107
};
108108

109109
const replicatorDoc2 = {
110110
_id: 'existing-doc-filter2',
111-
source: "https://source-db2.com",
112-
target: "https://target-db.com"
111+
source: "https://source-db2.com.test",
112+
target: "https://target-db.com.test"
113113
};
114114
client
115115
.deleteDatabase('_replicator')
@@ -139,38 +139,38 @@ module.exports = {
139139

140140
const replicatorDoc1 = {
141141
_id: 'existing-doc-id-display',
142-
source: "https://source-db.com",
143-
target: "https://target-db.com"
142+
source: "https://source-db.com.test",
143+
target: "https://target-db.com.test"
144144
};
145145

146146
const replicatorDoc2 = {
147147
_id: 'existing-doc-id-display2',
148-
source: "https://source-db2.com",
149-
target: "https://target-db.com"
148+
source: "https://source-db2.com.test",
149+
target: "https://target-db.com.test"
150150
};
151151

152152
const replicatorDoc3 = {
153153
_id: 'existing-doc-id-display3',
154-
source: "https://source-db3.com",
155-
target: "https://target-db.com"
154+
source: "https://source-db3.com.test",
155+
target: "https://target-db.com.test"
156156
};
157157

158158
const replicatorDoc4 = {
159159
_id: 'existing-doc-id-display4',
160-
source: "https://source-db4.com",
161-
target: "https://target-db.com"
160+
source: "https://source-db4.com.test",
161+
target: "https://target-db.com.test"
162162
};
163163

164164
const replicatorDoc5 = {
165165
_id: 'existing-doc-id-display5',
166-
source: "https://source-db5.com",
167-
target: "https://target-db.com"
166+
source: "https://source-db5.com.test",
167+
target: "https://target-db.com.test"
168168
};
169169

170170
const replicatorDoc6 = {
171171
_id: 'existing-doc-id-display6',
172-
source: "https://source-db6.com",
173-
target: "https://target-db.com"
172+
source: "https://source-db6.com.test",
173+
target: "https://target-db.com.test"
174174
};
175175

176176
client

0 commit comments

Comments
 (0)