summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-09-18 21:10:36 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2018-09-18 21:10:36 -0400
commit118cc1eeb978f9c5c8492368fe6b5a04669fe3c3 (patch)
tree8cacb7cd59056e6411a58ef8bf96e254ffe7299c
parent67ab3ae97432353dea52c74fcc5982ea4d4d7ae6 (diff)
downloadmongo-118cc1eeb978f9c5c8492368fe6b5a04669fe3c3.tar.gz
SERVER-36444 disable validation in allPaths tests
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_and_text_indexes.js1
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_basic_index_bounds.js3
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_cached_plans.js3
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_collation.js5
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_covered_queries.js5
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_index_multikey.js3
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_partial_index.js3
-rw-r--r--jstests/noPassthroughWithMongod/all_paths_validindex.js3
8 files changed, 24 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/all_paths_and_text_indexes.js b/jstests/noPassthroughWithMongod/all_paths_and_text_indexes.js
index 2b515f89d59..5f31ed28870 100644
--- a/jstests/noPassthroughWithMongod/all_paths_and_text_indexes.js
+++ b/jstests/noPassthroughWithMongod/all_paths_and_text_indexes.js
@@ -95,6 +95,7 @@
// Disable $** indexes once the tests have either completed or failed.
assert.commandWorked(
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false}));
+
// TODO: SERVER-36444 remove this coll.drop because validation should work now.
coll.drop();
}
diff --git a/jstests/noPassthroughWithMongod/all_paths_basic_index_bounds.js b/jstests/noPassthroughWithMongod/all_paths_basic_index_bounds.js
index 8252fa5f6bf..132aebd75cc 100644
--- a/jstests/noPassthroughWithMongod/all_paths_basic_index_bounds.js
+++ b/jstests/noPassthroughWithMongod/all_paths_basic_index_bounds.js
@@ -213,5 +213,8 @@
// Disable $** indexes once the tests have either completed or failed.
assert.commandWorked(
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false}));
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_cached_plans.js b/jstests/noPassthroughWithMongod/all_paths_cached_plans.js
index bd54cba889f..8ac69da4ddb 100644
--- a/jstests/noPassthroughWithMongod/all_paths_cached_plans.js
+++ b/jstests/noPassthroughWithMongod/all_paths_cached_plans.js
@@ -133,4 +133,7 @@
assert.neq(queryIndexedExplain.queryPlanner.queryHash,
queryUnindexedExplain.queryPlanner.queryHash);
})();
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_collation.js b/jstests/noPassthroughWithMongod/all_paths_collation.js
index d0fc07d3d97..b8e2afcddf5 100644
--- a/jstests/noPassthroughWithMongod/all_paths_collation.js
+++ b/jstests/noPassthroughWithMongod/all_paths_collation.js
@@ -124,5 +124,8 @@
} finally {
// Disable $** indexes once the tests have either completed or failed.
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false});
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
-})(); \ No newline at end of file
+})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_covered_queries.js b/jstests/noPassthroughWithMongod/all_paths_covered_queries.js
index 1855ab33fdb..8f179eda556 100644
--- a/jstests/noPassthroughWithMongod/all_paths_covered_queries.js
+++ b/jstests/noPassthroughWithMongod/all_paths_covered_queries.js
@@ -90,5 +90,8 @@
} finally {
// Disable $** indexes once the tests have either completed or failed.
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false});
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
-})(); \ No newline at end of file
+})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_index_multikey.js b/jstests/noPassthroughWithMongod/all_paths_index_multikey.js
index 93437827cf3..3c3f1a5aac8 100644
--- a/jstests/noPassthroughWithMongod/all_paths_index_multikey.js
+++ b/jstests/noPassthroughWithMongod/all_paths_index_multikey.js
@@ -132,5 +132,8 @@
// Disable $** indexes once the tests have either completed or failed.
assert.commandWorked(
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false}));
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_partial_index.js b/jstests/noPassthroughWithMongod/all_paths_partial_index.js
index 8cd6f80c9db..c39b4be9fbc 100644
--- a/jstests/noPassthroughWithMongod/all_paths_partial_index.js
+++ b/jstests/noPassthroughWithMongod/all_paths_partial_index.js
@@ -54,5 +54,8 @@
} finally {
// Disable $** indexes once the tests have either completed or failed.
db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: false});
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
})();
diff --git a/jstests/noPassthroughWithMongod/all_paths_validindex.js b/jstests/noPassthroughWithMongod/all_paths_validindex.js
index dc2802ce143..fe108b64ba8 100644
--- a/jstests/noPassthroughWithMongod/all_paths_validindex.js
+++ b/jstests/noPassthroughWithMongod/all_paths_validindex.js
@@ -157,5 +157,8 @@
} finally {
assert.commandWorked(
db.adminCommand({"setParameter": 1, "internalQueryAllowAllPathsIndexes": false}));
+
+ // TODO: SERVER-36444 remove calls to drop() once wildcard index validation works.
+ coll.drop();
}
})();