...

Text file src/go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail/entity-client-storeEventsAsEntities-conflict_with_client_id.yml

Documentation: go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail

     1description: "entity-client-storeEventsAsEntities-conflict_with_client_id"
     2
     3schemaVersion: "1.2"
     4
     5createEntities:
     6  - client:
     7      id: &client0 client0
     8      storeEventsAsEntities:
     9        # Using the client ID here will ensure that test runners also detect
    10        # conflicts with the same entity being defined
    11        - id: *client0
    12          events: ["PoolCreatedEvent", "PoolReadyEvent", "PoolClearedEvent", "PoolClosedEvent"]
    13
    14tests:
    15  - description: "foo"
    16    operations: []

View as plain text