diff options
author | Denis Grebennicov <denis.grebennicov@mongodb.com> | 2022-01-17 14:37:49 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-17 15:04:30 +0000 |
commit | 0be3003a1d0eadeddc6136f4186820341051728e (patch) | |
tree | 4fb0763b23d077a73a52b0334cb9e30ec10a7237 /jstests/core | |
parent | d665b073400427a0f2557e2039b8e6c82db42031 (diff) | |
download | mongo-0be3003a1d0eadeddc6136f4186820341051728e.tar.gz |
SERVER-62148 Move changeStreamPreAndPostImages collection option tests from timeseries to changeStream test file
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/timeseries/timeseries_collmod.js | 8 | ||||
-rw-r--r-- | jstests/core/timeseries/timeseries_create_collection.js | 14 |
2 files changed, 0 insertions, 22 deletions
diff --git a/jstests/core/timeseries/timeseries_collmod.js b/jstests/core/timeseries/timeseries_collmod.js index 86374d30dbc..4108ce9c74a 100644 --- a/jstests/core/timeseries/timeseries_collmod.js +++ b/jstests/core/timeseries/timeseries_collmod.js @@ -51,14 +51,6 @@ assert.commandFailedWithCode(db.runCommand({"collMod": collName, "viewOn": "foo" assert.commandFailedWithCode(db.runCommand({"collMod": collName, "recordPreImages": true}), ErrorCodes.InvalidOptions); -// Tries to set 'changeStreamPreAndPostImages' for a time-series collection. -assert.commandFailedWithCode( - db.runCommand({"collMod": collName, "changeStreamPreAndPostImages": {enabled: true}}), [ - ErrorCodes.InvalidOptions, - // TODO SERVER-58584: remove the error code. - 5846901 - ]); - // Successfully sets 'expireAfterSeconds' for a time-series collection. assert.commandWorked(db.runCommand({"collMod": collName, "expireAfterSeconds": 60})); diff --git a/jstests/core/timeseries/timeseries_create_collection.js b/jstests/core/timeseries/timeseries_create_collection.js index 20de3e8974f..feb2f443d26 100644 --- a/jstests/core/timeseries/timeseries_create_collection.js +++ b/jstests/core/timeseries/timeseries_create_collection.js @@ -68,18 +68,4 @@ collections = assert.commandWorked(testDB.runCommand({listCollections: 1})).curs jsTestLog('Checking listCollections result: ' + tojson(collections)); assert.isnull(collections.find(entry => entry.name === 'system.buckets.' + coll.getName())); assert(collections.find(entry => entry.name === coll.getName())); - -// Should fail to create a timeseries collection with enabled 'changeStreamPreAndPostImages' -// option. -coll.drop(); -assert.commandFailedWithCode(testDB.runCommand({ - create: coll.getName(), - timeseries: {timeField: timeFieldName}, - changeStreamPreAndPostImages: {enabled: true} -}), - [ - ErrorCodes.InvalidOptions, - // TODO SERVER-58584: remove the error code. - 5846901 - ]); })(); |