summaryrefslogtreecommitdiff
path: root/jstests/core/clustered/clustered_collection_bounded_scan.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/clustered/clustered_collection_bounded_scan.js')
-rw-r--r--jstests/core/clustered/clustered_collection_bounded_scan.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/jstests/core/clustered/clustered_collection_bounded_scan.js b/jstests/core/clustered/clustered_collection_bounded_scan.js
new file mode 100644
index 00000000000..8a6a0a1a9d5
--- /dev/null
+++ b/jstests/core/clustered/clustered_collection_bounded_scan.js
@@ -0,0 +1,22 @@
+/**
+ * Verifies bounded collection scan operation for collections clustered by _id.
+ *
+ * @tags: [
+ * requires_fcv_53,
+ * # Does not support sharding
+ * assumes_against_mongod_not_mongos,
+ * assumes_unsharded_collection,
+ * ]
+ */
+(function() {
+"use strict";
+
+load("jstests/libs/clustered_collections/clustered_collection_util.js");
+load("jstests/libs/clustered_collections/clustered_collection_bounded_scan_common.js");
+
+const replicatedDB = db.getSiblingDB(jsTestName());
+const collName = "coll";
+const replicatedColl = replicatedDB[collName];
+
+testClusteredCollectionBoundedScan(replicatedColl, {_id: 1});
+})();