summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorsergey.galtsev <sergey.galtsev@mongodb.com>2022-01-15 02:03:13 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-15 02:30:18 +0000
commit8b7a9e2abf6f4cb56fd1e6e58c2f40ff8e8eaf64 (patch)
treed7ede59b39ad5dabec381c3c4b7ea0c9992dab51 /jstests
parent560cf02296f03685faaaf5f655dec00316dbbd85 (diff)
downloadmongo-8b7a9e2abf6f4cb56fd1e6e58c2f40ff8e8eaf64.tar.gz
SERVER-62478 selinux skip tests tagged no_selinux
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/api_version_parameters.js1
-rw-r--r--jstests/core/api_version_test_expression.js1
-rw-r--r--jstests/core/basic6.js5
-rw-r--r--jstests/core/capped_empty.js1
-rw-r--r--jstests/core/capped_update.js1
-rw-r--r--jstests/core/check_shard_index.js1
-rw-r--r--jstests/core/collection_truncate.js1
-rw-r--r--jstests/core/collection_uuid_find.js1
-rw-r--r--jstests/core/commands_namespace_parsing.js1
-rw-r--r--jstests/core/comment_field.js1
-rw-r--r--jstests/core/compound_index_max_fields.js3
-rw-r--r--jstests/core/crud_ops_do_not_throw_locktimeout.js1
-rw-r--r--jstests/core/currentop_cursors.js1
-rw-r--r--jstests/core/currentop_shell.js1
-rw-r--r--jstests/core/currentop_waiting_for_latch.js2
-rw-r--r--jstests/core/datasize2.js3
-rw-r--r--jstests/core/doc_validation_options.js1
-rw-r--r--jstests/core/double_decimal_compare.js1
-rw-r--r--jstests/core/drop_collection.js1
-rw-r--r--jstests/core/explain_uuid.js3
-rw-r--r--jstests/core/failcommand_failpoint.js1
-rw-r--r--jstests/core/geo_near_point_query.js2
-rw-r--r--jstests/core/getlog2.js1
-rw-r--r--jstests/core/hash.js3
-rw-r--r--jstests/core/indexj.js1
-rw-r--r--jstests/core/jssymbol.js4
-rw-r--r--jstests/core/latch_analyzer.js2
-rw-r--r--jstests/core/list_all_sessions.js1
-rw-r--r--jstests/core/list_sessions.js1
-rw-r--r--jstests/core/logprocessdetails.js1
-rw-r--r--jstests/core/mr_killop.js1
-rw-r--r--jstests/core/profile_hide_index.js1
-rw-r--r--jstests/core/rename_collection_capped.js1
-rw-r--r--jstests/core/resume_query.js1
-rw-r--r--jstests/core/sort_with_update_between_getmores.js1
-rw-r--r--jstests/core/splitvector.js1
-rw-r--r--jstests/core/stages_and_hash.js1
-rw-r--r--jstests/core/stages_and_sorted.js1
-rw-r--r--jstests/core/stages_collection_scan.js1
-rw-r--r--jstests/core/stages_delete.js1
-rw-r--r--jstests/core/stages_fetch.js1
-rw-r--r--jstests/core/stages_ixscan.js1
-rw-r--r--jstests/core/stages_limit_skip.js1
-rw-r--r--jstests/core/stages_mergesort.js1
-rw-r--r--jstests/core/stages_or.js1
-rw-r--r--jstests/core/type8.js4
-rw-r--r--jstests/core/validate_db_metadata_command.js1
-rw-r--r--jstests/core/version_api_list_commands_verification.js1
-rw-r--r--jstests/core/wildcard_index_distinct_scan.js1
-rw-r--r--jstests/core/wildcard_index_projection.js1
-rw-r--r--jstests/selinux/core.js81
51 files changed, 82 insertions, 70 deletions
diff --git a/jstests/core/api_version_parameters.js b/jstests/core/api_version_parameters.js
index 61ca9b5987a..7cf76233859 100644
--- a/jstests/core/api_version_parameters.js
+++ b/jstests/core/api_version_parameters.js
@@ -3,6 +3,7 @@
*
* @tags: [
* uses_api_parameters,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/api_version_test_expression.js b/jstests/core/api_version_test_expression.js
index 7e3ac0ab565..41bbd9c0402 100644
--- a/jstests/core/api_version_test_expression.js
+++ b/jstests/core/api_version_test_expression.js
@@ -7,6 +7,7 @@
* assumes_against_mongod_not_mongos,
* assumes_unsharded_collection,
* uses_api_parameters,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/basic6.js b/jstests/core/basic6.js
index c5919bfb158..89aef4acc2e 100644
--- a/jstests/core/basic6.js
+++ b/jstests/core/basic6.js
@@ -1,3 +1,8 @@
+/**
+ * @tags: [
+ * no_selinux,
+ * ]
+ */
t = db.basic6;
diff --git a/jstests/core/capped_empty.js b/jstests/core/capped_empty.js
index 9b287a30428..c9be3386006 100644
--- a/jstests/core/capped_empty.js
+++ b/jstests/core/capped_empty.js
@@ -9,6 +9,7 @@
* assumes_unsharded_collection,
* # emptycapped command is not supported on mongos
* assumes_against_mongod_not_mongos,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/capped_update.js b/jstests/core/capped_update.js
index 9ea661e19d5..5dd17f6402b 100644
--- a/jstests/core/capped_update.js
+++ b/jstests/core/capped_update.js
@@ -10,6 +10,7 @@
* assumes_standalone_mongod,
* # capped collections connot be sharded
* assumes_unsharded_collection,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/check_shard_index.js b/jstests/core/check_shard_index.js
index e64beee77f8..61e84c038b1 100644
--- a/jstests/core/check_shard_index.js
+++ b/jstests/core/check_shard_index.js
@@ -2,6 +2,7 @@
// requires_fastcount,
// requires_non_retryable_writes,
// requires_sharding,
+// no_selinux,
// ]
// -------------------------
diff --git a/jstests/core/collection_truncate.js b/jstests/core/collection_truncate.js
index cdb00e59461..a6a38420015 100644
--- a/jstests/core/collection_truncate.js
+++ b/jstests/core/collection_truncate.js
@@ -4,6 +4,7 @@
// uses_testing_only_commands,
// requires_emptycapped,
// uses_full_validation,
+// no_selinux,
// ]
// SERVER-15033 truncate on a regular collection
diff --git a/jstests/core/collection_uuid_find.js b/jstests/core/collection_uuid_find.js
index e958bffa890..61caa932db8 100644
--- a/jstests/core/collection_uuid_find.js
+++ b/jstests/core/collection_uuid_find.js
@@ -4,6 +4,7 @@
* @tags: [
* featureFlagCommandsAcceptCollectionUUID,
* tenant_migration_incompatible,
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/commands_namespace_parsing.js b/jstests/core/commands_namespace_parsing.js
index e386b7eadcc..6016eaa4fee 100644
--- a/jstests/core/commands_namespace_parsing.js
+++ b/jstests/core/commands_namespace_parsing.js
@@ -9,6 +9,7 @@
// requires_non_retryable_commands,
// uses_testing_only_commands,
// uses_map_reduce_with_temp_collections,
+// no_selinux,
// ]
// This file tests that commands namespace parsing rejects embedded null bytes.
diff --git a/jstests/core/comment_field.js b/jstests/core/comment_field.js
index 5bc3d2ba04a..ab9f3dbc264 100644
--- a/jstests/core/comment_field.js
+++ b/jstests/core/comment_field.js
@@ -9,6 +9,7 @@
* does_not_support_stepdowns,
* requires_profiling,
* uses_parallel_shell,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/compound_index_max_fields.js b/jstests/core/compound_index_max_fields.js
index bfc589b83be..7faf9a385be 100644
--- a/jstests/core/compound_index_max_fields.js
+++ b/jstests/core/compound_index_max_fields.js
@@ -4,6 +4,7 @@
* @tags: [
* assumes_unsharded_collection,
* requires_non_retryable_writes,
+ * no_selinux,
* ]
*/
(function() {
@@ -53,4 +54,4 @@ for (let i = 0; i < 32; i++) {
let query = {['f' + i]: 1};
assert.eq(2, coll.find().hint(spec).itcount(), "failed on query: " + tojson(query));
}
-})(); \ No newline at end of file
+})();
diff --git a/jstests/core/crud_ops_do_not_throw_locktimeout.js b/jstests/core/crud_ops_do_not_throw_locktimeout.js
index 36bc4bef2f9..2efec78ef37 100644
--- a/jstests/core/crud_ops_do_not_throw_locktimeout.js
+++ b/jstests/core/crud_ops_do_not_throw_locktimeout.js
@@ -6,6 +6,7 @@
* assumes_read_concern_unchanged,
* assumes_write_concern_unchanged,
* uses_parallel_shell,
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/currentop_cursors.js b/jstests/core/currentop_cursors.js
index 15fe92ce4d8..fdace3ad3b6 100644
--- a/jstests/core/currentop_cursors.js
+++ b/jstests/core/currentop_cursors.js
@@ -6,6 +6,7 @@
* assumes_read_concern_unchanged,
* assumes_read_preference_unchanged,
* requires_capped,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/currentop_shell.js b/jstests/core/currentop_shell.js
index e468b5fcfef..c96ef2507f1 100644
--- a/jstests/core/currentop_shell.js
+++ b/jstests/core/currentop_shell.js
@@ -10,6 +10,7 @@
* # node and the expected command is run on another, the latter will not show up in the
* # currentOp results.
* assumes_read_preference_unchanged,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/currentop_waiting_for_latch.js b/jstests/core/currentop_waiting_for_latch.js
index a8f126f667e..c8a18d57d84 100644
--- a/jstests/core/currentop_waiting_for_latch.js
+++ b/jstests/core/currentop_waiting_for_latch.js
@@ -2,7 +2,7 @@
* Tests that a backtrace will appear in the $currentOp output if the backtrace option is
* set to true and there is a latch timeout.
*
- * @tags: [assumes_read_concern_unchanged, assumes_read_preference_unchanged]
+ * @tags: [assumes_read_concern_unchanged, assumes_read_preference_unchanged, no_selinux]
*/
(function() {
"use strict";
diff --git a/jstests/core/datasize2.js b/jstests/core/datasize2.js
index 2468e490602..a9d008e2ed1 100644
--- a/jstests/core/datasize2.js
+++ b/jstests/core/datasize2.js
@@ -1,7 +1,6 @@
// Cannot implicitly shard accessed collections because the "dataSize" command returns an
// "keyPattern must equal shard key" error response.
-// @tags: [assumes_unsharded_collection]
-
+// @tags: [assumes_unsharded_collection, no_selinux]
//
// Test dataSize command, when called on the same or different database
// than the collection being queried.
diff --git a/jstests/core/doc_validation_options.js b/jstests/core/doc_validation_options.js
index 53cf6a46fd0..715cb5721b0 100644
--- a/jstests/core/doc_validation_options.js
+++ b/jstests/core/doc_validation_options.js
@@ -3,6 +3,7 @@
// # expected.
// assumes_no_implicit_collection_creation_after_drop,
// requires_non_retryable_commands,
+// no_selinux,
// ]
(function() {
diff --git a/jstests/core/double_decimal_compare.js b/jstests/core/double_decimal_compare.js
index 1afcb5d5498..d7f5a32975e 100644
--- a/jstests/core/double_decimal_compare.js
+++ b/jstests/core/double_decimal_compare.js
@@ -3,6 +3,7 @@
* is intended to reproduce SERVER-58155.
* @tags: [
* assumes_read_concern_local,
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/drop_collection.js b/jstests/core/drop_collection.js
index 7da94a08d75..2d44ca0379f 100644
--- a/jstests/core/drop_collection.js
+++ b/jstests/core/drop_collection.js
@@ -5,6 +5,7 @@
* # Cannot implicitly shard accessed collections because of collection
* # existing when none expected.
* assumes_no_implicit_collection_creation_after_drop,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/explain_uuid.js b/jstests/core/explain_uuid.js
index 84d67074c8d..4f614799763 100644
--- a/jstests/core/explain_uuid.js
+++ b/jstests/core/explain_uuid.js
@@ -1,6 +1,9 @@
/**
* Test that running explain() providing a collection UUID rather than collection name will fail
* cleanly.
+ * @tags: [
+ * no_selinux,
+ * ]
*/
(function() {
"use strict";
diff --git a/jstests/core/failcommand_failpoint.js b/jstests/core/failcommand_failpoint.js
index 8098a526ba5..eaba7de005a 100644
--- a/jstests/core/failcommand_failpoint.js
+++ b/jstests/core/failcommand_failpoint.js
@@ -3,6 +3,7 @@
* @tags: [
* assumes_read_concern_unchanged,
* assumes_read_preference_unchanged,
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/geo_near_point_query.js b/jstests/core/geo_near_point_query.js
index d3faba9c29e..4792c8895c8 100644
--- a/jstests/core/geo_near_point_query.js
+++ b/jstests/core/geo_near_point_query.js
@@ -2,7 +2,7 @@
* Verifies that $geoNear correctly matches the point given to the 'near' parameter when the
* 'maxDistance' parameter is set to 0.
*
- * @tags: [backport_required_multiversion]
+ * @tags: [backport_required_multiversion,no_selinux]
*/
(function() {
"use strict";
diff --git a/jstests/core/getlog2.js b/jstests/core/getlog2.js
index 94e18131ce0..1d1fa473750 100644
--- a/jstests/core/getlog2.js
+++ b/jstests/core/getlog2.js
@@ -6,6 +6,7 @@
// # be routed to the primary.
// assumes_read_preference_unchanged,
// does_not_support_stepdowns,
+// no_selinux,
// ]
load("jstests/libs/logv2_helpers.js");
diff --git a/jstests/core/hash.js b/jstests/core/hash.js
index 4f7cebcdb5a..ab522564cfb 100644
--- a/jstests/core/hash.js
+++ b/jstests/core/hash.js
@@ -4,6 +4,9 @@
* time or across architectures. This is a good place to put tests for any edge cases in the hash
* function that might be prone to change because of code changes or because of differences between
* architectures.
+ * @tags: [
+ * no_selinux,
+ * ]
*/
(function() {
'use strict';
diff --git a/jstests/core/indexj.js b/jstests/core/indexj.js
index 4d5b20734d9..32ccafc139a 100644
--- a/jstests/core/indexj.js
+++ b/jstests/core/indexj.js
@@ -3,6 +3,7 @@
// change depending on whether/how many documents are filtered out by the SHARDING_FILTER stage.
// @tags: [
// assumes_unsharded_collection,
+// no_selinux,
// ]
(function() {
diff --git a/jstests/core/jssymbol.js b/jstests/core/jssymbol.js
index 8a5e538aeeb..714ea48870a 100644
--- a/jstests/core/jssymbol.js
+++ b/jstests/core/jssymbol.js
@@ -1,5 +1,9 @@
// Test Symbol.toPrimitive works for DB and BSON objects
//
+// @tags: [
+// no_selinux,
+// ]
+
(function() {
// Exercise Symbol.toPrimitive on DB objects
assert(`${db}` === 'test');
diff --git a/jstests/core/latch_analyzer.js b/jstests/core/latch_analyzer.js
index da9ee67967e..73aa652c6c1 100644
--- a/jstests/core/latch_analyzer.js
+++ b/jstests/core/latch_analyzer.js
@@ -1,7 +1,7 @@
/**
* Verify that the LatchAnalyzer is working to expectations
*
- * @tags: [multiversion_incompatible]
+ * @tags: [multiversion_incompatible, no_selinux]
*/
(function() {
diff --git a/jstests/core/list_all_sessions.js b/jstests/core/list_all_sessions.js
index 0b6f802213b..9572c80532f 100644
--- a/jstests/core/list_all_sessions.js
+++ b/jstests/core/list_all_sessions.js
@@ -6,6 +6,7 @@
// # SERVER-54754 EphemeralForTest storage engine doesn't support
// # an optimized implementation for getting the latest oplog timestamp.
// incompatible_with_eft,
+// no_selinux,
// ]
// Basic tests for the $listSessions {allUsers:true} aggregation stage.
diff --git a/jstests/core/list_sessions.js b/jstests/core/list_sessions.js
index b9d27c427a7..0f81d5e3b82 100644
--- a/jstests/core/list_sessions.js
+++ b/jstests/core/list_sessions.js
@@ -6,6 +6,7 @@
// # SERVER-54754 EphemeralForTest storage engine doesn't support
// # an optimized implementation for getting the latest oplog timestamp.
// incompatible_with_eft,
+// no_selinux,
// ]
// Basic tests for the $listSessions aggregation stage.
diff --git a/jstests/core/logprocessdetails.js b/jstests/core/logprocessdetails.js
index 7357798c9b7..9155bacee05 100644
--- a/jstests/core/logprocessdetails.js
+++ b/jstests/core/logprocessdetails.js
@@ -1,6 +1,7 @@
// @tags: [
// assumes_superuser_permissions,
// does_not_support_stepdowns,
+// no_selinux,
// ]
/**
diff --git a/jstests/core/mr_killop.js b/jstests/core/mr_killop.js
index be994735823..52423248d08 100644
--- a/jstests/core/mr_killop.js
+++ b/jstests/core/mr_killop.js
@@ -6,6 +6,7 @@
// uses_map_reduce_with_temp_collections,
// uses_multiple_connections,
// uses_parallel_shell,
+// no_selinux,
// ]
(function() {
"use strict";
diff --git a/jstests/core/profile_hide_index.js b/jstests/core/profile_hide_index.js
index e4bd6de8865..ba0b4a9f70d 100644
--- a/jstests/core/profile_hide_index.js
+++ b/jstests/core/profile_hide_index.js
@@ -7,6 +7,7 @@
* requires_non_retryable_writes,
* requires_profiling,
* uses_parallel_shell,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/rename_collection_capped.js b/jstests/core/rename_collection_capped.js
index 8763189a8cc..10994ea7e78 100644
--- a/jstests/core/rename_collection_capped.js
+++ b/jstests/core/rename_collection_capped.js
@@ -7,6 +7,7 @@
* requires_non_retryable_commands,
* requires_capped,
* requires_collstats,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/resume_query.js b/jstests/core/resume_query.js
index e4d8f5aa258..6085a82e504 100644
--- a/jstests/core/resume_query.js
+++ b/jstests/core/resume_query.js
@@ -5,6 +5,7 @@
* multiversion_incompatible,
* requires_getmore,
* requires_persistence,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/sort_with_update_between_getmores.js b/jstests/core/sort_with_update_between_getmores.js
index 038ff5b7875..ec3cd4bf465 100644
--- a/jstests/core/sort_with_update_between_getmores.js
+++ b/jstests/core/sort_with_update_between_getmores.js
@@ -4,6 +4,7 @@
// @tags: [
// assumes_unsharded_collection,
// requires_getmore,
+// no_selinux,
// ]
// This test checks that a sort query with an update between getMores() doesn't produce out-of-order
diff --git a/jstests/core/splitvector.js b/jstests/core/splitvector.js
index 73903a45bb9..c99c634824f 100644
--- a/jstests/core/splitvector.js
+++ b/jstests/core/splitvector.js
@@ -10,6 +10,7 @@
// incompatible_with_embedded,
// requires_collstats,
// requires_fastcount,
+// no_selinux,
// ]
// -------------------------
diff --git a/jstests/core/stages_and_hash.js b/jstests/core/stages_and_hash.js
index e5260c6c1b1..6e56ee51106 100644
--- a/jstests/core/stages_and_hash.js
+++ b/jstests/core/stages_and_hash.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
t = db.stages_and_hashed;
diff --git a/jstests/core/stages_and_sorted.js b/jstests/core/stages_and_sorted.js
index aa4a2fa08c1..add65759578 100644
--- a/jstests/core/stages_and_sorted.js
+++ b/jstests/core/stages_and_sorted.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
t = db.stages_and_sorted;
diff --git a/jstests/core/stages_collection_scan.js b/jstests/core/stages_collection_scan.js
index 1687b3d7755..8246b123d7f 100644
--- a/jstests/core/stages_collection_scan.js
+++ b/jstests/core/stages_collection_scan.js
@@ -2,6 +2,7 @@
// does_not_support_stepdowns,
// uses_testing_only_commands,
// tenant_migration_incompatible,
+// no_selinux,
// ]
// Test basic query stage collection scan functionality.
diff --git a/jstests/core/stages_delete.js b/jstests/core/stages_delete.js
index 29145d961bb..76e6f29f870 100644
--- a/jstests/core/stages_delete.js
+++ b/jstests/core/stages_delete.js
@@ -5,6 +5,7 @@
// does_not_support_stepdowns,
// requires_fastcount,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test basic delete stage functionality.
diff --git a/jstests/core/stages_fetch.js b/jstests/core/stages_fetch.js
index 032cc930cf8..e0e6cb0dd20 100644
--- a/jstests/core/stages_fetch.js
+++ b/jstests/core/stages_fetch.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test basic fetch functionality.
diff --git a/jstests/core/stages_ixscan.js b/jstests/core/stages_ixscan.js
index 86184206e33..cc0b7efabd3 100644
--- a/jstests/core/stages_ixscan.js
+++ b/jstests/core/stages_ixscan.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test basic query stage index scan functionality.
diff --git a/jstests/core/stages_limit_skip.js b/jstests/core/stages_limit_skip.js
index 00ba7aae4f0..1d6c092683e 100644
--- a/jstests/core/stages_limit_skip.js
+++ b/jstests/core/stages_limit_skip.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test limit and skip
diff --git a/jstests/core/stages_mergesort.js b/jstests/core/stages_mergesort.js
index 6679da3d5a5..e2959669acc 100644
--- a/jstests/core/stages_mergesort.js
+++ b/jstests/core/stages_mergesort.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test query stage merge sorting.
diff --git a/jstests/core/stages_or.js b/jstests/core/stages_or.js
index d255404a21c..e3db379771b 100644
--- a/jstests/core/stages_or.js
+++ b/jstests/core/stages_or.js
@@ -1,6 +1,7 @@
// @tags: [
// does_not_support_stepdowns,
// uses_testing_only_commands,
+// no_selinux,
// ]
// Test basic OR functionality
diff --git a/jstests/core/type8.js b/jstests/core/type8.js
index e540cc901c7..d7fb6fe5e57 100644
--- a/jstests/core/type8.js
+++ b/jstests/core/type8.js
@@ -1,3 +1,7 @@
+// @tags: [
+// no_selinux,
+// ]
+
(function() {
"use strict";
diff --git a/jstests/core/validate_db_metadata_command.js b/jstests/core/validate_db_metadata_command.js
index b31028b6640..c9b0d40df09 100644
--- a/jstests/core/validate_db_metadata_command.js
+++ b/jstests/core/validate_db_metadata_command.js
@@ -1,6 +1,7 @@
/**
* Tests the validateDBMetaData commands with various input parameters.
* @tags: [
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/version_api_list_commands_verification.js b/jstests/core/version_api_list_commands_verification.js
index 797bebc9498..a90c2f175bd 100644
--- a/jstests/core/version_api_list_commands_verification.js
+++ b/jstests/core/version_api_list_commands_verification.js
@@ -3,6 +3,7 @@
*
* @tags: [
* requires_non_retryable_commands,
+ * no_selinux,
* ]
*/
diff --git a/jstests/core/wildcard_index_distinct_scan.js b/jstests/core/wildcard_index_distinct_scan.js
index a6580d39521..e56f81d5b62 100644
--- a/jstests/core/wildcard_index_distinct_scan.js
+++ b/jstests/core/wildcard_index_distinct_scan.js
@@ -2,6 +2,7 @@
* Tests that a $** index can provide a DISTINCT_SCAN or indexed solution where appropriate.
* @tags: [
* assumes_read_concern_local,
+ * no_selinux,
* ]
*/
(function() {
diff --git a/jstests/core/wildcard_index_projection.js b/jstests/core/wildcard_index_projection.js
index 36075752462..a7fde8e57d8 100644
--- a/jstests/core/wildcard_index_projection.js
+++ b/jstests/core/wildcard_index_projection.js
@@ -3,6 +3,7 @@
* properly. Exercises the fix for SERVER-52814.
* @tags: [
* assumes_read_concern_local,
+ * no_selinux,
* ]
*/
diff --git a/jstests/selinux/core.js b/jstests/selinux/core.js
index afff99cd4cb..cc12e46c122 100644
--- a/jstests/selinux/core.js
+++ b/jstests/selinux/core.js
@@ -19,79 +19,32 @@ class TestDefinition extends SelinuxBaseTest {
}
run() {
- let dirs = ["jstests/core", "jstests/core_standalone"];
+ // On RHEL7 there is no python3, but check_has_tag.py will also work with python2
+ const python = (0 == runNonMongoProgram("which", "python3")) ? "python3" : "python2";
- // Tests in jstests/core weren't specifically made to pass in this very scenario, so we
- // will not be fixing what is not working, and instead exclude them from running as
- // "known" to not work
- const exclude = new Set([
- "jstests/core/api_version_parameters.js",
- "jstests/core/api_version_test_expression.js",
- "jstests/core/basic6.js",
- "jstests/core/capped_empty.js",
- "jstests/core/capped_update.js",
- "jstests/core/check_shard_index.js",
- "jstests/core/collection_truncate.js",
- "jstests/core/commands_namespace_parsing.js",
- "jstests/core/comment_field.js",
- "jstests/core/compound_index_max_fields.js",
- "jstests/core/crud_ops_do_not_throw_locktimeout.js",
- "jstests/core/currentop_cursors.js",
- "jstests/core/currentop_shell.js",
- "jstests/core/currentop_waiting_for_latch.js",
- "jstests/core/datasize2.js",
- "jstests/core/doc_validation_options.js",
- "jstests/core/double_decimal_compare.js",
- "jstests/core/drop_collection.js",
- "jstests/core/explain_uuid.js",
- "jstests/core/failcommand_failpoint.js",
- "jstests/core/geo_near_point_query.js",
- "jstests/core/getlog2.js",
- "jstests/core/hash.js",
- "jstests/core/indexj.js",
- "jstests/core/jssymbol.js",
- "jstests/core/latch_analyzer.js",
- "jstests/core/list_all_sessions.js",
- "jstests/core/list_sessions.js",
- "jstests/core/logprocessdetails.js",
- "jstests/core/mr_killop.js",
- "jstests/core/profile_hide_index.js",
- "jstests/core/rename_collection_capped.js",
- "jstests/core/resume_query.js",
- "jstests/core/splitvector.js",
- "jstests/core/sort_with_update_between_getmores.js",
- "jstests/core/stages_and_hash.js",
- "jstests/core/stages_and_sorted.js",
- "jstests/core/stages_collection_scan.js",
- "jstests/core/stages_delete.js",
- "jstests/core/stages_fetch.js",
- "jstests/core/stages_ixscan.js",
- "jstests/core/stages_limit_skip.js",
- "jstests/core/stages_mergesort.js",
- "jstests/core/stages_or.js",
- "jstests/core/type8.js",
- "jstests/core/validate_db_metadata_command.js",
- "jstests/core/version_api_list_commands_verification.js",
- "jstests/core/wildcard_index_distinct_scan.js",
- "jstests/core/wildcard_index_projection.js",
- // TODO (SERVER-60185): Remove the collection_uuid_*.js exclusions once the feature flag
- // is enabled by default.
- "jstests/core/collection_uuid_find.js",
- ]);
+ const dirs = ["jstests/core", "jstests/core_standalone"];
- for (let id = 0; id < dirs.length; ++id) {
- const dir = dirs[id];
+ for (let dir of dirs) {
jsTest.log("Running tests in " + dir);
- const all_tests = ls(dir).filter(d => !d.endsWith("/") && !exclude.has(d)).sort();
+ const all_tests = ls(dir).filter(d => !d.endsWith("/")).sort();
assert(all_tests);
assert(all_tests.length);
- for (let i = 0; i < all_tests.length; ++i) {
- let t = all_tests[i];
- if (t.endsWith("/")) {
+ for (let t of all_tests) {
+ // Tests in jstests/core weren't specifically made to pass in this very scenario, so
+ // we will not be fixing what is not working, and instead exclude them from running
+ // as "known" to not work. This is done by the means of "no_selinux" tag
+ const HAS_TAG = 0;
+ if (HAS_TAG ==
+ runNonMongoProgram(python,
+ "buildscripts/resmokelib/utils/check_has_tag.py",
+ t,
+ "no_selinux")) {
+ jsTest.log("Skipping test due to no_selinux tag: " + t);
continue;
}
+
jsTest.log("Running test: " + t);
if (!load(t)) {
throw ("failed to load test " + t);