Skip to content

Commit a46ad91

Browse files
benjirewisprestonvasquez
authored andcommitted
GODRIVER-2657 Restrict getNonce spec tests to < 6.2. (#1147)
1 parent 0351e7f commit a46ad91

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

testdata/command-monitoring/unified/redacted-commands.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@
162162
},
163163
{
164164
"description": "getnonce",
165+
"runOnRequirements": [
166+
{
167+
"maxServerVersion": "6.1.99"
168+
}
169+
],
165170
"operations": [
166171
{
167172
"name": "runCommand",
@@ -293,6 +298,11 @@
293298
},
294299
{
295300
"description": "copydbgetnonce",
301+
"runOnRequirements": [
302+
{
303+
"maxServerVersion": "3.6.99"
304+
}
305+
],
296306
"operations": [
297307
{
298308
"name": "runCommand",
@@ -328,6 +338,11 @@
328338
},
329339
{
330340
"description": "copydbsaslstart",
341+
"runOnRequirements": [
342+
{
343+
"maxServerVersion": "4.0.99"
344+
}
345+
],
331346
"operations": [
332347
{
333348
"name": "runCommand",
@@ -363,6 +378,11 @@
363378
},
364379
{
365380
"description": "copydb",
381+
"runOnRequirements": [
382+
{
383+
"maxServerVersion": "4.0.99"
384+
}
385+
],
366386
"operations": [
367387
{
368388
"name": "runCommand",

testdata/command-monitoring/unified/redacted-commands.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ tests:
9393
payload: { $$exists: false }
9494

9595
- description: "getnonce"
96+
runOnRequirements:
97+
- maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007
9698
operations:
9799
- name: runCommand
98100
object: *database
@@ -159,6 +161,8 @@ tests:
159161
roles: { $$exists: false }
160162

161163
- description: "copydbgetnonce"
164+
runOnRequirements:
165+
- maxServerVersion: 3.6.99 # copydbgetnonce was removed as of 4.0 via SERVER-32276
162166
operations:
163167
- name: runCommand
164168
object: *database
@@ -176,6 +180,8 @@ tests:
176180
command: { copydbgetnonce: { $$exists: false } }
177181

178182
- description: "copydbsaslstart"
183+
runOnRequirements:
184+
- maxServerVersion: 4.0.99 # copydbsaslstart was removed as of 4.2 via SERVER-36211
179185
operations:
180186
- name: runCommand
181187
object: *database
@@ -193,6 +199,8 @@ tests:
193199
command: { copydbsaslstart: { $$exists: false } }
194200

195201
- description: "copydb"
202+
runOnRequirements:
203+
- maxServerVersion: 4.0.99 # copydb was removed as of 4.2 via SERVER-36257
196204
operations:
197205
- name: runCommand
198206
object: *database

testdata/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",

testdata/unified-test-format/valid-pass/observeSensitiveCommands.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ createEntities:
3838

3939
tests:
4040
- description: "getnonce is observed with observeSensitiveCommands=true"
41+
runOnRequirements:
42+
- maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007
4143
operations:
4244
- name: runCommand
4345
object: *databaseObserveSensitiveCommands
@@ -57,6 +59,8 @@ tests:
5759
nonce: { $$exists: false }
5860

5961
- description: "getnonce is not observed with observeSensitiveCommands=false"
62+
runOnRequirements:
63+
- maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007
6064
operations:
6165
- name: runCommand
6266
object: *databaseDoNotObserveSensitiveCommands
@@ -68,6 +72,8 @@ tests:
6872
events: []
6973

7074
- description: "getnonce is not observed by default"
75+
runOnRequirements:
76+
- maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007
7177
operations:
7278
- name: runCommand
7379
object: *databaseDoNotObserveSensitiveCommandsByDefault

0 commit comments

Comments
 (0)