summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2023-04-20 05:04:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-20 05:40:21 +0000
commit8840e4670932c1d6e4ede883217a308cefb8f4ed (patch)
tree995743c02e5b12b9fdff14050e75b8ed772005b6 /buildscripts
parent461cd4e174a601eba682ff307e4995f89a7b753e (diff)
downloadmongo-8840e4670932c1d6e4ede883217a308cefb8f4ed.tar.gz
SERVER-71128 Add single writes without shard key jscore passthrough suite
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokeconfig/suites/sharded_collections_single_writes_without_shard_key_jscore_passthrough.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/buildscripts/resmokeconfig/suites/sharded_collections_single_writes_without_shard_key_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/sharded_collections_single_writes_without_shard_key_jscore_passthrough.yml
new file mode 100644
index 00000000000..1cafef5dd6c
--- /dev/null
+++ b/buildscripts/resmokeconfig/suites/sharded_collections_single_writes_without_shard_key_jscore_passthrough.yml
@@ -0,0 +1,62 @@
+test_kind: js_test
+
+selector:
+ roots:
+ - jstests/core/write/**/*.js
+ exclude_files:
+ # The following tests fail because a certain command or functionality is not supported by mongos.
+ # This command or functionality is placed in a comment next to the failing test.
+ - jstests/core/**/collection_truncate.js # emptycapped.
+ # These tests create secondary unique: true indexes without the shard key prefix.
+ - jstests/core/**/batch_write_command_update.js
+ - jstests/core/**/batch_write_command_w0.js
+ - jstests/core/**/bulk_api_unordered.js
+ - jstests/core/**/bulk_api_ordered.js
+ # Test assertions expect a certain document is deleted whereas updateOnes, deleteOnes, and
+ # findAndModify without shard key can pick and modify any matching document.
+ - jstests/core/**/crud_api.js
+ # TODO SERVER-69922: Requires explain for single writes without shard key.
+ - jstests/core/**/update_hint.js
+ - jstests/core/**/delete_hint.js
+ - jstests/core/**/find_and_modify_hint.js
+ # Aggregation does not support $where.
+ - jstests/core/**/find_and_modify_concurrent_update.js
+ - jstests/core/**/find_and_modify_where.js
+ # {multi: true} upsert requires specifying the full shard key.
+ - jstests/core/**/update_multi_halts.js
+ - jstests/core/**/updatei.js
+ # {multi: true} update testing behavior not applicable to sharded clusters
+ - jstests/core/**/updatej.js
+ - jstests/core/**/write_result.js
+
+ exclude_with_any_tags:
+ - assumes_against_mongod_not_mongos
+ # Tests tagged with the following will fail because they assume collections are not sharded.
+ - assumes_no_implicit_collection_creation_after_drop
+ - cannot_create_unique_index_when_using_hashed_shard_key
+
+executor:
+ archive:
+ hooks:
+ - CheckReplDBHash
+ - CheckMetadataConsistencyInBackground
+ - ValidateCollections
+ config:
+ shell_options:
+ eval: load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
+ hooks:
+ - class: CheckReplDBHash
+ - class: CheckMetadataConsistencyInBackground
+ - class: ValidateCollections
+ - class: CleanEveryN
+ n: 20
+ fixture:
+ class: ShardedClusterFixture
+ num_shards: 2
+ enable_balancer: false
+ mongos_options:
+ set_parameters:
+ enableTestCommands: 1
+ mongod_options:
+ set_parameters:
+ enableTestCommands: 1