Skip to content

Commit 1d3f1c1

Browse files
authored
test(NODE-4057): update dns discovery tests (#3159)
1 parent 3182e8d commit 1d3f1c1

13 files changed

+35
-33
lines changed

test/integration/initial-dns-seedlist-discovery/initial_dns_seedlist_discovery.spec.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ function makeTest(test, topology) {
1818
});
1919

2020
it(test.comment, async function () {
21-
return this.skip(); // FIXME(NODE-3757): These tests require specific environment setups, also the error cases need better assertions
21+
this.test.skipReason =
22+
'TODO(NODE-3757): These tests require specific environment setups, also the error cases need better assertions';
23+
return this.skip();
2224
if (topology === 'replica-set' && this.configuration.topologyType !== 'ReplicaSetWithPrimary') {
2325
return this.skip();
2426
}

test/spec/initial-dns-seedlist-discovery/load-balanced/loadBalanced-directConnection.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"uri": "mongodb+srv://test20.test.build.10gen.cc/?directConnection=false",
2+
"uri": "mongodb+srv://test24.test.build.10gen.cc/?directConnection=false",
33
"seeds": [
4-
"localhost.test.build.10gen.cc:27017"
4+
"localhost.test.build.10gen.cc:8000"
55
],
66
"hosts": [
7-
"localhost.test.build.10gen.cc:27017"
7+
"localhost.test.build.10gen.cc:8000"
88
],
99
"options": {
1010
"loadBalanced": true,

test/spec/initial-dns-seedlist-discovery/load-balanced/loadBalanced-directConnection.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# The TXT record for test20.test.build.10gen.cc contains loadBalanced=true.
1+
# The TXT record for test24.test.build.10gen.cc contains loadBalanced=true.
22
# DRIVERS-1721 introduced this test as passing.
3-
uri: "mongodb+srv://test20.test.build.10gen.cc/?directConnection=false"
3+
uri: "mongodb+srv://test24.test.build.10gen.cc/?directConnection=false"
44
seeds:
5-
- localhost.test.build.10gen.cc:27017
5+
- localhost.test.build.10gen.cc:8000
66
hosts:
77
# In LB mode, the driver does not do server discovery, so the hostname does
8-
# not get resolved to localhost:27017.
9-
- localhost.test.build.10gen.cc:27017
8+
# not get resolved to localhost:8000.
9+
- localhost.test.build.10gen.cc:8000
1010
options:
1111
loadBalanced: true
1212
ssl: true

test/spec/initial-dns-seedlist-discovery/load-balanced/loadBalanced-replicaSet-errors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"uri": "mongodb+srv://test20.test.build.10gen.cc/?replicaSet=replset",
2+
"uri": "mongodb+srv://test24.test.build.10gen.cc/?replicaSet=replset",
33
"seeds": [],
44
"hosts": [],
55
"error": true,

test/spec/initial-dns-seedlist-discovery/load-balanced/loadBalanced-replicaSet-errors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# The TXT record for test20.test.build.10gen.cc contains loadBalanced=true.
2-
uri: "mongodb+srv://test20.test.build.10gen.cc/?replicaSet=replset"
1+
# The TXT record for test24.test.build.10gen.cc contains loadBalanced=true.
2+
uri: "mongodb+srv://test24.test.build.10gen.cc/?replicaSet=replset"
33
seeds: []
44
hosts: []
55
error: true

test/spec/initial-dns-seedlist-discovery/load-balanced/loadBalanced-true-txt.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"uri": "mongodb+srv://test20.test.build.10gen.cc/",
2+
"uri": "mongodb+srv://test24.test.build.10gen.cc/",
33
"seeds": [
4-
"localhost.test.build.10gen.cc:27017"
4+
"localhost.test.build.10gen.cc:8000"
55
],
66
"hosts": [
7-
"localhost.test.build.10gen.cc:27017"
7+
"localhost.test.build.10gen.cc:8000"
88
],
99
"options": {
1010
"loadBalanced": true,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
uri: "mongodb+srv://test20.test.build.10gen.cc/"
1+
uri: "mongodb+srv://test24.test.build.10gen.cc/"
22
seeds:
3-
- localhost.test.build.10gen.cc:27017
3+
- localhost.test.build.10gen.cc:8000
44
hosts:
55
# In LB mode, the driver does not do server discovery, so the hostname does
6-
# not get resolved to localhost:27017.
7-
- localhost.test.build.10gen.cc:27017
6+
# not get resolved to localhost:8000.
7+
- localhost.test.build.10gen.cc:8000
88
options:
99
loadBalanced: true
1010
ssl: true

test/spec/initial-dns-seedlist-discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true-txt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"uri": "mongodb+srv://test20.test.build.10gen.cc/?srvMaxHosts=1",
2+
"uri": "mongodb+srv://test24.test.build.10gen.cc/?srvMaxHosts=1",
33
"seeds": [],
44
"hosts": [],
55
"error": true,

test/spec/initial-dns-seedlist-discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true-txt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
uri: "mongodb+srv://test20.test.build.10gen.cc/?srvMaxHosts=1"
1+
uri: "mongodb+srv://test24.test.build.10gen.cc/?srvMaxHosts=1"
22
seeds: []
33
hosts: []
44
error: true

test/spec/initial-dns-seedlist-discovery/load-balanced/srvMaxHosts-zero-txt.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"uri": "mongodb+srv://test20.test.build.10gen.cc/?srvMaxHosts=0",
2+
"uri": "mongodb+srv://test24.test.build.10gen.cc/?srvMaxHosts=0",
33
"seeds": [
4-
"localhost.test.build.10gen.cc:27017"
4+
"localhost.test.build.10gen.cc:8000"
55
],
66
"hosts": [
7-
"localhost.test.build.10gen.cc:27017"
7+
"localhost.test.build.10gen.cc:8000"
88
],
99
"options": {
1010
"loadBalanced": true,

0 commit comments

Comments
 (0)