summaryrefslogtreecommitdiff
path: root/buildscripts/resmokeconfig/suites/aggregation_read_concern_majority_passthrough.yml
blob: 72b838b3c07f6b13e7c4605af0e407a5b55c8151 (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
53
54
55
56
57
58
selector:
  js_test:
    roots:
    - jstests/aggregation/*.js
    - jstests/aggregation/bugs/*.js
    - jstests/aggregation/expressions/*.js
    - jstests/aggregation/sources/*/*.js
    exclude_files:
    # These tests fail due to the inability to specify a writeConcern when secondaryThrottle is not
    # set as part of the moveChunk command.
    - jstests/aggregation/sources/facet/use_cases.js
    # These test fail because afterOpTime is required to guarantee a secondary has advanced its
    # majority-committed snapshot.
    - jstests/aggregation/mongos_slaveok.js
    - jstests/aggregation/testSlave.js
    exclude_with_any_tags:
    ##
    # The next three tags correspond to the special errors thrown by the
    # set_read_and_write_concerns.js override when it refuses to replace the readConcern or
    # writeConcern of a particular command. Above each tag are the message(s) that cause the tag to
    # be warranted.
    ##
    # "Cowardly refusing to override read concern of command: ..."
    - assumes_read_concern_unchanged
    # "Cowardly refusing to override write concern of command: ..."
    - assumes_write_concern_unchanged
    # "Cowardly refusing to run test with overridden write concern when it uses a command that can
    #  only perform w=1 writes: ..."
    - requires_collmod_command
    - requires_eval_command

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:
    # The CheckReplDBHash hook waits until all operations have replicated to and have been applied
    # on the secondaries, so we run the ValidateCollections hook after it to ensure we're
    # validating the entire contents of the collection.
    - class: CheckReplOplogs
    - class: CheckReplDBHash
    - class: ValidateCollections
    fixture:
      class: ReplicaSetFixture
      mongod_options:
        enableMajorityReadConcern: ''
        set_parameters:
          enableTestCommands: 1
          numInitialSyncAttempts: 1
      num_nodes: 2