summaryrefslogtreecommitdiff
path: root/buildscripts/resmokeconfig/suites/change_streams_mongos_sessions_passthrough.yml
blob: fd05367ac35c7b88fe055d4c94cfdfaa34403dff (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
test_kind: js_test

selector:
  roots:
  - jstests/change_streams/**/*.js
  exclude_files:
  # This test exercises an internal detail of mongos<->mongod communication and is not expected to
  # work against a mongos.
  - jstests/change_streams/report_latest_observed_oplog_timestamp.js
  # TODO: SERVER-32088 should fix resuming a change stream when not all shards have data.
  - jstests/change_streams/change_stream_shell_helper.js
  - jstests/change_streams/include_cluster_time.js
  - jstests/change_streams/lookup_post_image.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_eval_command
  # Transactions not supported on sharded clusters.
  - uses_transactions

executor:
  archive:
    hooks:
      - CheckReplDBHash
      - ValidateCollections
  config:
    shell_options:
      global_vars:
        TestData:
          defaultReadConcernLevel: majority
          enableMajorityReadConcern: ''
      eval: >-
        var testingReplication = true;
        load('jstests/libs/override_methods/set_read_and_write_concerns.js');
        load('jstests/libs/override_methods/enable_sessions.js');
      readMode: commands
  hooks:
  - class: CheckReplDBHash
  - class: ValidateCollections
  - class: CleanEveryN
    n: 20
  fixture:
    class: ShardedClusterFixture
    # Use two shards to make sure we will only talk to the primary shard for the database and will
    # not delay changes to wait for notifications or a clock advancement from other shards.
    num_shards: 2
    mongos_options:
      bind_ip_all: ''
      set_parameters:
        enableTestCommands: 1
    mongod_options:
      bind_ip_all: ''
      nopreallocj: ''
      set_parameters:
        enableTestCommands: 1
        numInitialSyncAttempts: 1
        periodicNoopIntervalSecs: 1
        writePeriodicNoops: true
    num_rs_nodes_per_shard: 1
    # This test suite doesn't actually shard any collections, but enabling sharding will prevent
    # read commands against non-existent databases from unconditionally returning a CursorId of 0.
    enable_sharding:
    - test