summaryrefslogtreecommitdiff
path: root/buildscripts/resmokeconfig/suites/aggregation_one_shard_sharded_collections.yml
blob: 5a3418ff8b41ac67b83f43a8acde41b62d4d163a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
test_kind: js_test

selector:
  roots:
  - jstests/aggregation/**/*.js
  exclude_files:
  - jstests/aggregation/extras/*.js
  - jstests/aggregation/data/*.js
  # The following tests start their own mongod.
  - jstests/aggregation/bugs/cursor_timeout.js
  - jstests/aggregation/bugs/lookup_unwind_getmore.js
  - jstests/aggregation/bugs/lookup_unwind_killcursor.js
  # TODO: Remove when SERVER-23229 is fixed.
  - jstests/aggregation/bugs/groupMissing.js
  exclude_with_any_tags:
  # Tests tagged with the following will fail because they assume collections are not sharded.
  - assumes_no_implicit_collection_creation_after_drop
  - assumes_no_implicit_index_creation
  - assumes_unsharded_collection
  - cannot_create_unique_index_when_using_hashed_shard_key
  # The following tests start their own ShardingTest or ReplSetTest, respectively.
  - requires_sharding
  - requires_replication

executor:
  archive:
    hooks:
      - CheckReplDBHash
      - ValidateCollections
  config:
    shell_options:
      # Use the overrides to implicitly shard all accessed collections, and to error if a test
      # starts its own test fixture - since such a test should not be part of this passthrough.
      eval: >-
        load("jstests/libs/override_methods/implicitly_shard_accessed_collections.js");
        load("jstests/libs/override_methods/detect_spawning_own_mongod.js");
  hooks:
  - class: CheckReplDBHash
  - class: ValidateCollections
  - class: CleanEveryN
    n: 20
  fixture:
    class: ShardedClusterFixture
    num_shards: 1
    mongos_options:
      set_parameters:
        enableTestCommands: 1
    mongod_options:
      nopreallocj: ''
      set_parameters:
        enableTestCommands: 1
        numInitialSyncAttempts: 1