summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2023-02-10 19:58:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-11 01:58:08 +0000
commitcd6345eed1bf9a65f4a58c4631e5494d9566939c (patch)
tree012ce6ba1283eb0e40ae8ccdb9d0e69f21e47343
parent944b024917b8ce7179bab74b357d4bad71e2e33a (diff)
downloadmongo-cd6345eed1bf9a65f4a58c4631e5494d9566939c.tar.gz
SERVER-73886 Tag jstests with requires_scripting for NTDI passthrough
-rw-r--r--jstests/core/administrative/profile/profile_delete.js2
-rw-r--r--jstests/core/catalog/list_collections_filter.js2
-rw-r--r--jstests/core/constructors.js2
-rw-r--r--jstests/core/doc_validation/doc_validation_invalid_validators.js2
-rw-r--r--jstests/core/function_string_representations.js2
-rw-r--r--jstests/core/query/count/counta.js6
-rw-r--r--jstests/core/query/js/js2.js6
-rw-r--r--jstests/core/write/update/update_arrayFilters.js2
8 files changed, 22 insertions, 2 deletions
diff --git a/jstests/core/administrative/profile/profile_delete.js b/jstests/core/administrative/profile/profile_delete.js
index 1ae768153a6..9b37c8f1631 100644
--- a/jstests/core/administrative/profile/profile_delete.js
+++ b/jstests/core/administrative/profile/profile_delete.js
@@ -7,6 +7,8 @@
// requires_fcv_63,
// requires_non_retryable_writes,
// requires_profiling,
+// # Uses $where operator
+// requires_scripting,
// ]
// Confirms that profiled delete execution contains all expected metrics with proper values.
diff --git a/jstests/core/catalog/list_collections_filter.js b/jstests/core/catalog/list_collections_filter.js
index 1341e60d890..f659b103a96 100644
--- a/jstests/core/catalog/list_collections_filter.js
+++ b/jstests/core/catalog/list_collections_filter.js
@@ -9,6 +9,8 @@
* assumes_against_mongod_not_mongos,
* # Tenant migrations don't support applyOps.
* tenant_migration_incompatible,
+ * # Uses $where operator
+ * requires_scripting,
* ]
*/
diff --git a/jstests/core/constructors.js b/jstests/core/constructors.js
index 22a9297262f..a672c350d3e 100644
--- a/jstests/core/constructors.js
+++ b/jstests/core/constructors.js
@@ -8,6 +8,8 @@
// uses_map_reduce_with_temp_collections,
// # This test has statements that do not support non-local read concern.
// does_not_support_causal_consistency,
+// # Uses $where operator
+// requires_scripting,
// ]
// Takes a list of constructors and returns a new list with an extra entry for each constructor with
diff --git a/jstests/core/doc_validation/doc_validation_invalid_validators.js b/jstests/core/doc_validation/doc_validation_invalid_validators.js
index 3bb7d41f926..542c7918ed2 100644
--- a/jstests/core/doc_validation/doc_validation_invalid_validators.js
+++ b/jstests/core/doc_validation/doc_validation_invalid_validators.js
@@ -5,6 +5,8 @@
// not_allowed_with_security_token,
// assumes_no_implicit_collection_creation_after_drop,
// requires_non_retryable_commands,
+// # Uses $where operator
+// requires_scripting,
// ]
// Verify invalid validator statements won't work and that we
diff --git a/jstests/core/function_string_representations.js b/jstests/core/function_string_representations.js
index 283a785238d..4720c32913a 100644
--- a/jstests/core/function_string_representations.js
+++ b/jstests/core/function_string_representations.js
@@ -3,6 +3,8 @@
// not_allowed_with_security_token,
// does_not_support_stepdowns,
// uses_map_reduce_with_temp_collections,
+// # Uses $where operator
+// requires_scripting,
// ]
/**
diff --git a/jstests/core/query/count/counta.js b/jstests/core/query/count/counta.js
index 8d7df953e3d..a08900fce3d 100644
--- a/jstests/core/query/count/counta.js
+++ b/jstests/core/query/count/counta.js
@@ -1,6 +1,10 @@
// Check that count returns 0 in some exception cases.
//
-// @tags: [requires_fastcount]
+// @tags: [
+// requires_fastcount,
+// # Uses $where operator
+// requires_scripting,
+// ]
(function() {
'use strict';
diff --git a/jstests/core/query/js/js2.js b/jstests/core/query/js/js2.js
index bd5379f7df1..6e2c712b83d 100644
--- a/jstests/core/query/js/js2.js
+++ b/jstests/core/query/js/js2.js
@@ -1,4 +1,8 @@
-// @tags: [requires_non_retryable_writes]
+// @tags: [
+// requires_non_retryable_writes,
+// # Uses $where operator
+// requires_scripting,
+//]
t = db.jstests_js2;
t.remove({});
diff --git a/jstests/core/write/update/update_arrayFilters.js b/jstests/core/write/update/update_arrayFilters.js
index 9618fed1c5c..49b67d7e634 100644
--- a/jstests/core/write/update/update_arrayFilters.js
+++ b/jstests/core/write/update/update_arrayFilters.js
@@ -6,6 +6,8 @@
// requires_non_retryable_writes,
// # TODO SERVER-30466
// does_not_support_causal_consistency,
+// # Uses $where operator
+// requires_scripting,
// ]
// Tests for the arrayFilters option to update and findAndModify.