Debian Codegraph @

src/libmongoc/tests/json/command-logging-and-monitoring/monitoring/unacknowledgedBulkWrite.json

raw
1 {
2 "description": "unacknowledgedBulkWrite",
3 "schemaVersion": "1.7",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client",
8 "useMultipleMongoses": false,
9 "observeEvents": [
10 "commandStartedEvent",
11 "commandSucceededEvent",
12 "commandFailedEvent"
13 ]
14 }
15 },
16 {
17 "database": {
18 "id": "database",
19 "client": "client",
20 "databaseName": "command-monitoring-tests"
21 }
22 },
23 {
24 "collection": {
25 "id": "collection",
26 "database": "database",
27 "collectionName": "test",
28 "collectionOptions": {
29 "writeConcern": {
30 "w": 0
31 }
32 }
33 }
34 }
35 ],
36 "initialData": [
37 {
38 "collectionName": "test",
39 "databaseName": "command-monitoring-tests",
40 "documents": [
41 {
42 "_id": 1,
43 "x": 11
44 }
45 ]
46 }
47 ],
48 "tests": [
49 {
50 "description": "A successful unordered bulk write with an unacknowledged write concern",
51 "operations": [
52 {
53 "name": "bulkWrite",
54 "object": "collection",
55 "arguments": {
56 "requests": [
57 {
58 "insertOne": {
59 "document": {
60 "_id": "unorderedBulkWriteInsertW0",
61 "x": 44
62 }
63 }
64 }
65 ],
66 "ordered": false
67 }
68 },
69 {
70 "name": "find",
71 "object": "collection",
72 "arguments": {
73 "filter": {}
74 }
75 }
76 ],
77 "expectEvents": [
78 {
79 "client": "client",
80 "ignoreExtraEvents": true,
81 "events": [
82 {
83 "commandStartedEvent": {
84 "command": {
85 "insert": "test",
86 "documents": [
87 {
88 "_id": "unorderedBulkWriteInsertW0",
89 "x": 44
90 }
91 ],
92 "ordered": false,
93 "writeConcern": {
94 "w": 0
95 }
96 },
97 "commandName": "insert",
98 "databaseName": "command-monitoring-tests"
99 }
100 },
101 {
102 "commandSucceededEvent": {
103 "reply": {
104 "ok": 1,
105 "n": {
106 "$$exists": false
107 }
108 },
109 "commandName": "insert"
110 }
111 }
112 ]
113 }
114 ]
115 }
116 ]
117 }