| 1 |
description: entity-client-cmap-events |
| 2 |
|
| 3 |
schemaVersion: '1.3' |
| 4 |
|
| 5 |
createEntities: |
| 6 |
- client: |
| 7 |
id: &client0 client0 |
| 8 |
useMultipleMongoses: true |
| 9 |
observeEvents: |
| 10 |
- connectionReadyEvent |
| 11 |
- connectionCheckedOutEvent |
| 12 |
- connectionCheckedInEvent |
| 13 |
- database: |
| 14 |
id: &database0 database0 |
| 15 |
client: *client0 |
| 16 |
databaseName: &database0Name database0Name |
| 17 |
- collection: |
| 18 |
id: &collection0 collection0 |
| 19 |
database: *database0 |
| 20 |
collectionName: &collection0Name coll0 |
| 21 |
|
| 22 |
initialData: |
| 23 |
- collectionName: *collection0Name |
| 24 |
databaseName: *database0Name |
| 25 |
documents: [] |
| 26 |
|
| 27 |
tests: |
| 28 |
- description: events are captured during an operation |
| 29 |
operations: |
| 30 |
- name: insertOne |
| 31 |
object: *collection0 |
| 32 |
arguments: |
| 33 |
document: { x: 1 } |
| 34 |
expectEvents: |
| 35 |
- client: *client0 |
| 36 |
eventType: cmap |
| 37 |
events: |
| 38 |
- connectionReadyEvent: {} |
| 39 |
- connectionCheckedOutEvent: {} |
| 40 |
- connectionCheckedInEvent: {} |