File: change-streams-errors.yml

package info (click to toggle)
libmongodb-perl 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,316 kB
  • sloc: perl: 12,983; makefile: 22; sh: 11
file content (53 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download
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
collection_name: &collection_name "test"
database_name: &database_name "change-stream-tests"
collection2_name: &collection2_name "test2"
database2_name: &database2_name "change-stream-tests-2"
tests:
  -
    description: The watch helper must not throw a custom exception when executed against a single server topology, but instead depend on a server error
    minServerVersion: "3.6.0"
    target: collection
    topology:
      - single
    changeStreamPipeline: []
    changeStreamOptions: {}
    operations: []
    expectations: []
    result:
      error:
        code: 40573
  -
    description: Change Stream should error when an invalid aggregation stage is passed in
    minServerVersion: "3.6.0"
    target: collection
    topology:
      - replicaset
    changeStreamPipeline:
      -
        $unsupported: foo
    changeStreamOptions: {}
    operations:
      -
        database: *database_name
        collection: *collection_name
        name: insertOne
        arguments:
          document:
            z: 3
    expectations:
      -
        command_started_event:
          command:
            aggregate: *collection_name
            cursor: {}
            pipeline:
              - 
                $changeStream:
                  fullDocument: default
              -
                $unsupported: foo
          command_name: aggregate
          database_name: *database_name
    result:
      error:
        code: 40324