summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/collmod_index_noop.js
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2022-05-03 15:31:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-03 18:08:50 +0000
commit69c6a3d495cd845834cd83902498a14813c2daf9 (patch)
tree792b5b81f85a4fd554dbdf6ef939d0264f8f0a72 /jstests/noPassthrough/collmod_index_noop.js
parent73938f0e9a74b4e45b7b134473ad8e3b36322a66 (diff)
downloadmongo-69c6a3d495cd845834cd83902498a14813c2daf9.tar.gz
SERVER-65933 Enable creation of columnstore index
Adds a new feature flag which must be enabled to create one.
Diffstat (limited to 'jstests/noPassthrough/collmod_index_noop.js')
-rw-r--r--jstests/noPassthrough/collmod_index_noop.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/noPassthrough/collmod_index_noop.js b/jstests/noPassthrough/collmod_index_noop.js
index e090fe87935..e10857e8dbe 100644
--- a/jstests/noPassthrough/collmod_index_noop.js
+++ b/jstests/noPassthrough/collmod_index_noop.js
@@ -15,7 +15,7 @@
(function() {
"use strict";
-load("jstests/libs/get_index_helpers.js");
+load("jstests/libs/index_catalog_helpers.js");
const rst = new ReplSetTest({nodes: 2, nodeOpts: {binVersion: "latest"}});
rst.startSet();
@@ -105,7 +105,7 @@ validateCollModOplogEntryCount({
1);
// Test that the index was successfully modified.
-let idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "b_1");
+let idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "b_1");
assert.eq(idxSpec.hidden, undefined);
assert.eq(idxSpec.expireAfterSeconds, 10);
@@ -131,7 +131,7 @@ if (collModIndexUniqueEnabled) {
1);
// Test that the index was successfully modified.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "c_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "c_1");
assert.eq(idxSpec.hidden, undefined);
assert.eq(idxSpec.expireAfterSeconds, undefined);
assert(idxSpec.unique, tojson(idxSpec));
@@ -149,7 +149,7 @@ if (collModIndexUniqueEnabled) {
0);
// Test that the index was unchanged.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "d_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "d_1");
assert.eq(idxSpec.hidden, undefined);
assert.eq(idxSpec.expireAfterSeconds, undefined);
assert(idxSpec.unique, tojson(idxSpec));
@@ -167,7 +167,7 @@ if (collModIndexUniqueEnabled) {
0);
// Test that the index was unchanged.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "e_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "e_1");
assert(idxSpec.hidden, tojson(idxSpec));
assert.eq(idxSpec.expireAfterSeconds, undefined);
assert(idxSpec.unique, tojson(idxSpec));
@@ -190,7 +190,7 @@ if (collModIndexUniqueEnabled) {
1);
// Test that the index was successfully modified.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "f_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "f_1");
assert.eq(idxSpec.hidden, undefined);
assert.eq(idxSpec.expireAfterSeconds, 20);
assert(idxSpec.unique, tojson(idxSpec));
@@ -214,7 +214,7 @@ if (collModIndexUniqueEnabled) {
1);
// Test that the index was successfully modified.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "g_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "g_1");
assert(idxSpec.hidden, tojson(idxSpec));
assert.eq(idxSpec.expireAfterSeconds, 30);
assert(idxSpec.unique, tojson(idxSpec));
@@ -232,7 +232,7 @@ if (collModIndexUniqueEnabled) {
0);
// Test that the index was unchanged.
- idxSpec = GetIndexHelpers.findByName(primaryColl.getIndexes(), "h_1");
+ idxSpec = IndexCatalogHelpers.findByName(primaryColl.getIndexes(), "h_1");
assert.eq(idxSpec.hidden, undefined);
assert.eq(idxSpec.expireAfterSeconds, undefined);
assert(idxSpec.prepareUnique, tojson(idxSpec));