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