summaryrefslogtreecommitdiff
path: root/buildscripts/resmokeconfig/suites/aggregation_read_concern_majority_passthrough.yml
blob: 695ac071892d0e268bb59171f89bb92ad2dcd724 (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
selector:
  js_test:
    roots:
    - jstests/aggregation/*.js
    - jstests/aggregation/bugs/*.js
    - jstests/aggregation/expressions/*.js
    - jstests/aggregation/sources/*/*.js
    exclude_files:
    - jstests/aggregation/bugs/server18198.js # Uses a mocked mongo client to test read preference.
    - jstests/aggregation/mongos_slaveok.js # Majority read on secondary requires afterOpTime.
    - jstests/aggregation/sources/facet/use_cases.js # Cannot specify write concern when
                                                     # secondaryThrottle is not set.
    - jstests/aggregation/testSlave.js # Majority read on secondary requires afterOpTime.

executor:
  js_test:
    config:
      shell_options:
        global_vars:
          TestData:
            defaultReadConcernLevel: majority
            enableMajorityReadConcern: ''
        eval: "var testingReplication = true; load('jstests/libs/override_methods/set_read_and_write_concerns.js');"
        readMode: commands
    hooks:
    - class: ValidateCollections
    - class: CheckReplOplogs
    - class: CheckReplDBHash
    fixture:
      class: ReplicaSetFixture
      mongod_options:
        bind_ip_all: ''
        enableMajorityReadConcern: ''
        set_parameters:
          enableTestCommands: 1
          numInitialSyncAttempts: 1
      num_nodes: 2
      # Needs to be set for any ephemeral or no-journaling storage engine
      write_concern_majority_journal_default: false