Skip to content

Commit ec07401

Browse files
authored
PYTHON-3523 Resync unified test format tests for getnonce (#1141)
1 parent 124dee6 commit ec07401

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

test/test_auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ def test_scram_threaded(self):
581581
coll.insert_one({"_id": 1})
582582

583583
# The first thread to call find() will authenticate
584-
coll = rs_or_single_client().db.test
584+
client = rs_or_single_client()
585+
self.addCleanup(client.close)
586+
coll = client.db.test
585587
threads = []
586588
for _ in range(4):
587589
threads.append(AutoAuthenticateThread(coll))

test/unified-test-format/valid-pass/observeSensitiveCommands.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
"tests": [
6262
{
6363
"description": "getnonce is observed with observeSensitiveCommands=true",
64+
"runOnRequirements": [
65+
{
66+
"maxServerVersion": "6.1.99"
67+
}
68+
],
6469
"operations": [
6570
{
6671
"name": "runCommand",
@@ -106,6 +111,11 @@
106111
},
107112
{
108113
"description": "getnonce is not observed with observeSensitiveCommands=false",
114+
"runOnRequirements": [
115+
{
116+
"maxServerVersion": "6.1.99"
117+
}
118+
],
109119
"operations": [
110120
{
111121
"name": "runCommand",
@@ -127,6 +137,11 @@
127137
},
128138
{
129139
"description": "getnonce is not observed by default",
140+
"runOnRequirements": [
141+
{
142+
"maxServerVersion": "6.1.99"
143+
}
144+
],
130145
"operations": [
131146
{
132147
"name": "runCommand",

0 commit comments

Comments
 (0)