PYTHON-3170 Run ping command in SRV spec tests (#1424)

This commit is contained in:
Shane Harvey 2023-11-08 12:59:13 -08:00 committed by GitHub
parent 83d0e7afa4
commit 578024e16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 57 additions and 24 deletions

View File

@ -10,5 +10,6 @@
"loadBalanced": true,
"ssl": true,
"directConnection": false
}
},
"ping": true
}

View File

@ -9,5 +9,6 @@
"options": {
"loadBalanced": true,
"ssl": true
}
},
"ping": true
}

View File

@ -10,5 +10,6 @@
"loadBalanced": true,
"srvMaxHosts": 0,
"ssl": true
}
},
"ping": true
}

View File

@ -10,5 +10,6 @@
"loadBalanced": true,
"srvMaxHosts": 0,
"ssl": true
}
},
"ping": true
}

View File

@ -11,5 +11,6 @@
"options": {
"ssl": true,
"directConnection": false
}
},
"ping": true
}

View File

@ -17,5 +17,6 @@
"password": "$4to@L8=MC",
"db": "mydb?"
},
"ping": false,
"comment": "Encoded user, pass, and DB parse correctly"
}

View File

@ -11,5 +11,6 @@
"options": {
"loadBalanced": false,
"ssl": true
}
},
"ping": true
}

View File

@ -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\"."
}

View File

@ -11,5 +11,6 @@
"options": {
"replicaSet": "repl0",
"ssl": true
}
},
"ping": true
}

View File

@ -11,5 +11,6 @@
"options": {
"replicaSet": "repl0",
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"replicaSet": "repl0",
"authSource": "thisDB",
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"options": {
"ssl": true,
"srvServiceName": "customname"
}
},
"ping": true
}

View File

@ -13,5 +13,6 @@
"options": {
"srvMaxHosts": 2,
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"options": {
"srvMaxHosts": 3,
"ssl": true
}
},
"ping": true
}

View File

@ -9,5 +9,6 @@
"options": {
"srvMaxHosts": 1,
"ssl": true
}
},
"ping": true
}

View File

@ -13,5 +13,6 @@
"replicaSet": "repl0",
"srvMaxHosts": 0,
"ssl": true
}
},
"ping": true
}

View File

@ -13,5 +13,6 @@
"replicaSet": "repl0",
"srvMaxHosts": 0,
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"options": {
"replicaSet": "repl0",
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"options": {
"replicaSet": "repl0",
"ssl": true
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"replicaSet": "repl0",
"authSource": "thisDB",
"ssl": false
}
},
"ping": true
}

View File

@ -12,5 +12,6 @@
"replicaSet": "repl0",
"authSource": "otherDB",
"ssl": true
}
},
"ping": true
}

View File

@ -15,5 +15,6 @@
},
"parsed_options": {
"auth_database": "adminDB"
}
},
"ping": true
}

View File

@ -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"
}

View File

@ -12,5 +12,6 @@
"options": {
"srvMaxHosts": 2,
"ssl": true
}
},
"ping": true
}

View File

@ -11,5 +11,6 @@
"options": {
"srvMaxHosts": 3,
"ssl": true
}
},
"ping": true
}

View File

@ -5,5 +5,6 @@
"options": {
"srvMaxHosts": 1,
"ssl": true
}
},
"ping": true
}

View File

@ -11,5 +11,6 @@
"options": {
"srvMaxHosts": 0,
"ssl": true
}
},
"ping": true
}

View File

@ -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: