diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2017-09-01 15:32:59 -0400 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2017-09-01 16:56:17 -0400 |
commit | edfcb9cfbef2f0bcd85cd46cb1b9ccbe89d0f299 (patch) | |
tree | c4e61650adbbead5866ea03636b1d3162d94706c | |
parent | bd153cba11ab82ffbf8d2bc0b801eb808369eb9e (diff) | |
download | mongo-edfcb9cfbef2f0bcd85cd46cb1b9ccbe89d0f299.tar.gz |
SERVER-29592 Mark JSON Schema FCV tests as [requires_persistence].
This should fix the
json_schema_initial_sync_with_feature_compatibility failures in the
inMemory configurations.
-rw-r--r-- | jstests/multiVersion/json_schema_feature_compatibility_version.js | 9 | ||||
-rw-r--r-- | jstests/replsets/json_schema_initial_sync_with_feature_compatibility.js | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/jstests/multiVersion/json_schema_feature_compatibility_version.js b/jstests/multiVersion/json_schema_feature_compatibility_version.js index 5cee64e1836..1dc74763f20 100644 --- a/jstests/multiVersion/json_schema_feature_compatibility_version.js +++ b/jstests/multiVersion/json_schema_feature_compatibility_version.js @@ -1,5 +1,10 @@ -// Test that mongod will not allow creationg of JSON schema validators when the -// feature compatibility version is older than 3.6. +/** + * Test that mongod will not allow creationg of JSON schema validators when the feature + * compatibility version is older than 3.6. + * + * We restart mongod during the test and expect it to have the same data after restarting. + * @tags: [requires_persistence] + */ (function() { "use strict"; diff --git a/jstests/replsets/json_schema_initial_sync_with_feature_compatibility.js b/jstests/replsets/json_schema_initial_sync_with_feature_compatibility.js index f875e73a00a..5550be61d79 100644 --- a/jstests/replsets/json_schema_initial_sync_with_feature_compatibility.js +++ b/jstests/replsets/json_schema_initial_sync_with_feature_compatibility.js @@ -1,6 +1,10 @@ /** * Test that a new replica set member can successfully sync a collection with a $jsonSchema * validator, even when the replica set was downgraded to feature compatibility version 3.4. + * + * We restart the secondary as part of this test with the expecation that it still has the same + * data after the restart. + * @tags: [requires_persistence] */ load("jstests/replsets/rslib.js"); |