diff options
Diffstat (limited to 'jstests/core/views/views_rename.js')
-rw-r--r-- | jstests/core/views/views_rename.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/jstests/core/views/views_rename.js b/jstests/core/views/views_rename.js deleted file mode 100644 index ee0d2bfbd11..00000000000 --- a/jstests/core/views/views_rename.js +++ /dev/null @@ -1,27 +0,0 @@ -// @tags: [ -// assumes_superuser_permissions, -// requires_fastcount, -// requires_non_retryable_commands, -// ] - -(function() { -// SERVER-30406 Test that renaming system.views correctly invalidates the view catalog -'use strict'; - -const collName = "views_rename_test"; -let coll = db.getCollection(collName); - -db.view.drop(); -coll.drop(); -assert.commandWorked(db.createView("view", collName, [])); -assert.commandWorked(coll.insert({_id: 1})); -assert.eq(db.view.find().count(), 1, "couldn't find document in view"); -assert.commandWorked(db.system.views.renameCollection("views", /*dropTarget*/ true)); -assert.eq(db.view.find().count(), - 0, - "find on view should have returned no results after renaming away system.views"); -assert.commandWorked(db.views.renameCollection("system.views")); -assert.eq(db.view.find().count(), - 1, - "find on view should have worked again after renaming system.views back in place"); -})(); |