diff options
author | Yuhong Zhang <yuhong.zhang@mongodb.com> | 2022-11-10 22:45:17 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-11 00:20:48 +0000 |
commit | 2ef0ee31539036523136230b93c8e7cbf62a0ddd (patch) | |
tree | 34664f66308cb62737ce73a8bdbda3eb9084a3af /jstests/core | |
parent | ebd7d857178f5585149a1a8d300aa3a5e10206a7 (diff) | |
download | mongo-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.js | 3 |
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 = { |