Skip to content

Commit a10c3f0

Browse files
authored
CXX-2614 sync tests impacted by removal of MONGODB-CR (#911)
1 parent 0b6488f commit a10c3f0

File tree

2 files changed

+36
-45
lines changed

2 files changed

+36
-45
lines changed

data/unified-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",

data/unified-format/valid-pass/redacted-commands.json

Lines changed: 21 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,12 @@
1818
"observeSensitiveCommands": true
1919
}
2020
},
21-
{
22-
"client": {
23-
"id": "client-no-observe",
24-
"observeEvents": [
25-
"commandStartedEvent",
26-
"commandSucceededEvent"
27-
],
28-
"observeSensitiveCommands": false
29-
}
30-
},
3121
{
3222
"database": {
3323
"id": "database",
3424
"client": "client",
3525
"databaseName": "command-monitoring-tests"
3626
}
37-
},
38-
{
39-
"database": {
40-
"id": "unobserved-database",
41-
"client": "client-no-observe",
42-
"databaseName": "command-monitoring-tests-2"
43-
}
4427
}
4528
],
4629
"tests": [
@@ -91,33 +74,6 @@
9174
}
9275
]
9376
},
94-
{
95-
"description": "authenticate-without-observing",
96-
"operations": [
97-
{
98-
"name": "runCommand",
99-
"object": "unobserved-database",
100-
"arguments": {
101-
"commandName": "authenticate",
102-
"command": {
103-
"authenticate": 1,
104-
"mechanism": "MONGODB-X509",
105-
"user": "CN=myName,OU=myOrgUnit,O=myOrg,L=myLocality,ST=myState,C=myCountry",
106-
"db": "$external"
107-
}
108-
},
109-
"expectError": {
110-
"isError": true
111-
}
112-
}
113-
],
114-
"expectEvents": [
115-
{
116-
"client": "client-no-observe",
117-
"events": []
118-
}
119-
]
120-
},
12177
{
12278
"description": "saslStart",
12379
"operations": [
@@ -206,6 +162,11 @@
206162
},
207163
{
208164
"description": "getnonce",
165+
"runOnRequirements": [
166+
{
167+
"maxServerVersion": "6.1.99"
168+
}
169+
],
209170
"operations": [
210171
{
211172
"name": "runCommand",
@@ -337,6 +298,11 @@
337298
},
338299
{
339300
"description": "copydbgetnonce",
301+
"runOnRequirements": [
302+
{
303+
"maxServerVersion": "3.6.99"
304+
}
305+
],
340306
"operations": [
341307
{
342308
"name": "runCommand",
@@ -372,6 +338,11 @@
372338
},
373339
{
374340
"description": "copydbsaslstart",
341+
"runOnRequirements": [
342+
{
343+
"maxServerVersion": "4.0.99"
344+
}
345+
],
375346
"operations": [
376347
{
377348
"name": "runCommand",
@@ -407,6 +378,11 @@
407378
},
408379
{
409380
"description": "copydb",
381+
"runOnRequirements": [
382+
{
383+
"maxServerVersion": "4.0.99"
384+
}
385+
],
410386
"operations": [
411387
{
412388
"name": "runCommand",
@@ -700,4 +676,4 @@
700676
]
701677
}
702678
]
703-
}
679+
}

0 commit comments

Comments
 (0)