File: unacknowledgedBulkWrite.yml

package info (click to toggle)
libmongodb-perl 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,264 kB
  • sloc: perl: 14,419; python: 299; makefile: 20; sh: 11
file content (35 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download | duplicates (6)
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
data:
  - { _id: 1, x: 11 }

collection_name: &collection_name "test-unacknowledged-bulk-write"
database_name: &database_name "command-monitoring-tests"

tests:
  -
    description: "A successful unordered bulk write with an unacknowledged write concern"
    comment: "On a 2.4 server, no GLE is sent and requires a client-side manufactured reply"
    operation:
      name: "bulkWrite"
      collectionOptions:
        writeConcern: { w: 0 }
      arguments:
        requests:
          - name: "insertOne"
            arguments:
              document: { _id: "unorderedBulkWriteInsertW0", x: 44 }
        options: { ordered: false }
    expectations:
      -
        command_started_event:
          command:
            insert: *collection_name
            documents:
              - { _id: "unorderedBulkWriteInsertW0", x: 44 }
            ordered: false
            writeConcern: { w: 0 }
          command_name: "insert"
          database_name: *database_name
      -
        command_succeeded_event:
          reply: { ok: 1.0 }
          command_name: "insert"