summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorYuhong Zhang <yuhong.zhang@mongodb.com>2022-11-10 22:45:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-11 00:20:48 +0000
commit2ef0ee31539036523136230b93c8e7cbf62a0ddd (patch)
tree34664f66308cb62737ce73a8bdbda3eb9084a3af /jstests/core
parentebd7d857178f5585149a1a8d300aa3a5e10206a7 (diff)
downloadmongo-2ef0ee31539036523136230b93c8e7cbf62a0ddd.tar.gz
SERVER-71226 Skip collections with explicitly set conflicting validators in the background validation hook
Diffstat (limited to 'jstests/core')
-rw-r--r--jstests/core/views/invalid_system_views.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/views/invalid_system_views.js b/jstests/core/views/invalid_system_views.js
index d4151e34513..3585f510850 100644
--- a/jstests/core/views/invalid_system_views.js
+++ b/jstests/core/views/invalid_system_views.js
@@ -113,7 +113,8 @@ function runTest(badViewDefinition) {
}
assert.commandWorked(
- viewsDB.runCommand({collMod: "collection", validator: {x: {$type: "string"}}}),
+ viewsDB.runCommand(
+ {collMod: "collection", validator: {x: {$type: "string"}}, validationAction: "warn"}),
makeErrorMessage("collMod"));
const renameCommand = {