PYTHON-3523 Resync unified test format tests for getnonce (#1141)

This commit is contained in:
Shane Harvey 2023-01-24 14:38:48 -08:00 committed by GitHub
parent 124dee66c3
commit ec074010d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -581,7 +581,9 @@ class TestSCRAM(IntegrationTest):
coll.insert_one({"_id": 1})
# The first thread to call find() will authenticate
coll = rs_or_single_client().db.test
client = rs_or_single_client()
self.addCleanup(client.close)
coll = client.db.test
threads = []
for _ in range(4):
threads.append(AutoAuthenticateThread(coll))

View File

@ -61,6 +61,11 @@
"tests": [
{
"description": "getnonce is observed with observeSensitiveCommands=true",
"runOnRequirements": [
{
"maxServerVersion": "6.1.99"
}
],
"operations": [
{
"name": "runCommand",
@ -106,6 +111,11 @@
},
{
"description": "getnonce is not observed with observeSensitiveCommands=false",
"runOnRequirements": [
{
"maxServerVersion": "6.1.99"
}
],
"operations": [
{
"name": "runCommand",
@ -127,6 +137,11 @@
},
{
"description": "getnonce is not observed by default",
"runOnRequirements": [
{
"maxServerVersion": "6.1.99"
}
],
"operations": [
{
"name": "runCommand",