diff --git a/testdata/command-monitoring/redacted-commands.json b/testdata/command-monitoring/redacted-commands.json index 0f85dc3e94..4302ba8900 100644 --- a/testdata/command-monitoring/redacted-commands.json +++ b/testdata/command-monitoring/redacted-commands.json @@ -162,6 +162,11 @@ }, { "description": "getnonce", + "runOnRequirements": [ + { + "maxServerVersion": "6.1.99" + } + ], "operations": [ { "name": "runCommand", @@ -293,6 +298,11 @@ }, { "description": "copydbgetnonce", + "runOnRequirements": [ + { + "maxServerVersion": "3.6.99" + } + ], "operations": [ { "name": "runCommand", @@ -328,6 +338,11 @@ }, { "description": "copydbsaslstart", + "runOnRequirements": [ + { + "maxServerVersion": "4.0.99" + } + ], "operations": [ { "name": "runCommand", @@ -363,6 +378,11 @@ }, { "description": "copydb", + "runOnRequirements": [ + { + "maxServerVersion": "4.0.99" + } + ], "operations": [ { "name": "runCommand", diff --git a/testdata/command-monitoring/redacted-commands.yml b/testdata/command-monitoring/redacted-commands.yml index 570fb5a547..adeab99b18 100644 --- a/testdata/command-monitoring/redacted-commands.yml +++ b/testdata/command-monitoring/redacted-commands.yml @@ -93,6 +93,8 @@ tests: payload: { $$exists: false } - description: "getnonce" + runOnRequirements: + - maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007 operations: - name: runCommand object: *database @@ -159,6 +161,8 @@ tests: roles: { $$exists: false } - description: "copydbgetnonce" + runOnRequirements: + - maxServerVersion: 3.6.99 # copydbgetnonce was removed as of 4.0 via SERVER-32276 operations: - name: runCommand object: *database @@ -176,6 +180,8 @@ tests: command: { copydbgetnonce: { $$exists: false } } - description: "copydbsaslstart" + runOnRequirements: + - maxServerVersion: 4.0.99 # copydbsaslstart was removed as of 4.2 via SERVER-36211 operations: - name: runCommand object: *database @@ -193,6 +199,8 @@ tests: command: { copydbsaslstart: { $$exists: false } } - description: "copydb" + runOnRequirements: + - maxServerVersion: 4.0.99 # copydb was removed as of 4.2 via SERVER-36257 operations: - name: runCommand object: *database diff --git a/testdata/unified-test-format/valid-pass/observeSensitiveCommands.json b/testdata/unified-test-format/valid-pass/observeSensitiveCommands.json index 411ca19c5d..d3ae5665be 100644 --- a/testdata/unified-test-format/valid-pass/observeSensitiveCommands.json +++ b/testdata/unified-test-format/valid-pass/observeSensitiveCommands.json @@ -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", diff --git a/testdata/unified-test-format/valid-pass/observeSensitiveCommands.yml b/testdata/unified-test-format/valid-pass/observeSensitiveCommands.yml index 13db413706..cd4d27a165 100644 --- a/testdata/unified-test-format/valid-pass/observeSensitiveCommands.yml +++ b/testdata/unified-test-format/valid-pass/observeSensitiveCommands.yml @@ -38,6 +38,8 @@ createEntities: tests: - description: "getnonce is observed with observeSensitiveCommands=true" + runOnRequirements: + - maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007 operations: - name: runCommand object: *databaseObserveSensitiveCommands @@ -57,6 +59,8 @@ tests: nonce: { $$exists: false } - description: "getnonce is not observed with observeSensitiveCommands=false" + runOnRequirements: + - maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007 operations: - name: runCommand object: *databaseDoNotObserveSensitiveCommands @@ -68,6 +72,8 @@ tests: events: [] - description: "getnonce is not observed by default" + runOnRequirements: + - maxServerVersion: 6.1.99 # getnonce removed as of 6.2 via SERVER-71007 operations: - name: runCommand object: *databaseDoNotObserveSensitiveCommandsByDefault