PYTHON-3170 Run ping command in SRV spec tests (#1424)
This commit is contained in:
parent
83d0e7afa4
commit
578024e16a
@ -10,5 +10,6 @@
|
||||
"loadBalanced": true,
|
||||
"ssl": true,
|
||||
"directConnection": false
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -9,5 +9,6 @@
|
||||
"options": {
|
||||
"loadBalanced": true,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -10,5 +10,6 @@
|
||||
"loadBalanced": true,
|
||||
"srvMaxHosts": 0,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -10,5 +10,6 @@
|
||||
"loadBalanced": true,
|
||||
"srvMaxHosts": 0,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"ssl": true,
|
||||
"directConnection": false
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -17,5 +17,6 @@
|
||||
"password": "$4to@L8=MC",
|
||||
"db": "mydb?"
|
||||
},
|
||||
"ping": false,
|
||||
"comment": "Encoded user, pass, and DB parse correctly"
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"loadBalanced": false,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
},
|
||||
"ping": true,
|
||||
"comment": "Is correct, as returned host name shared the URI root \"test.build.10gen.cc\"."
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"authSource": "thisDB",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"options": {
|
||||
"ssl": true,
|
||||
"srvServiceName": "customname"
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -13,5 +13,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 2,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 3,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -9,5 +9,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 1,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -13,5 +13,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"srvMaxHosts": 0,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -13,5 +13,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"srvMaxHosts": 0,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"options": {
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"options": {
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"authSource": "thisDB",
|
||||
"ssl": false
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"replicaSet": "repl0",
|
||||
"authSource": "otherDB",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -15,5 +15,6 @@
|
||||
},
|
||||
"parsed_options": {
|
||||
"auth_database": "adminDB"
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -9,9 +9,14 @@
|
||||
"localhost:27018",
|
||||
"localhost:27019"
|
||||
],
|
||||
"options": {
|
||||
"replicaSet": "repl0",
|
||||
"ssl": true
|
||||
},
|
||||
"parsed_options": {
|
||||
"user": "auser",
|
||||
"password": "apass"
|
||||
},
|
||||
"ping": false,
|
||||
"comment": "Should preserve auth credentials"
|
||||
}
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 2,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 3,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -5,5 +5,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 1,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -11,5 +11,6 @@
|
||||
"options": {
|
||||
"srvMaxHosts": 0,
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"ping": true
|
||||
}
|
||||
|
||||
@ -132,6 +132,8 @@ def create_test(test_case):
|
||||
wait_until(
|
||||
lambda: num_hosts == len(client.nodes), "wait to connect to num_hosts"
|
||||
)
|
||||
if test_case.get("ping", True):
|
||||
client.admin.command("ping")
|
||||
# XXX: we should block until SRV poller runs at least once
|
||||
# and re-run these assertions.
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user