Skip to content

Commit

Permalink
DRIVERS-828 Use array of objects for storeEventsAsEntities (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola authored Mar 10, 2021
1 parent 43fb850 commit 5bf2456
Show file tree
Hide file tree
Showing 16 changed files with 244 additions and 230 deletions.
9 changes: 4 additions & 5 deletions docs/source/spec-test-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ A Test Scenario File has the following keys:

The scenario MUST use ``storeEventsAsEntities`` operation argument
when defining MongoClients to record CMAP and command events published
during maintenance. The entity name for ``storeEventsAsEntities`` argument
MUST be ``events``. When this option is used, ``astrolabe`` will retrieve
the collected events and store them as an Evergreen build artifact, and
will also calculate statistics for command execution time and connection
counts.
during maintenance. All events MUST be stored in an entity named ``events``.
When this option is used, ``astrolabe`` will retrieve the collected events and
store them as an Evergreen build artifact, and will also calculate statistics
for command execution time and connection counts.

.. note:: A previous version of this document specified a top-level
``uriOptions`` for specifying URI options for the MongoClient under test.
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-move-sharded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-move.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-primaryRemoval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-primaryTakeover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-processRestart-sharded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-processRestart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-resizeCluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-testFailover-sharded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-testFailover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
31 changes: 16 additions & 15 deletions tests/retryReads-toggleServerSideJS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@ driverWorkload:
uriOptions:
retryReads: true
storeEventsAsEntities:
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- id: events
events:
- PoolCreatedEvent
- PoolReadyEvent
- PoolClearedEvent
- PoolClosedEvent
- ConnectionCreatedEvent
- ConnectionReadyEvent
- ConnectionClosedEvent
- ConnectionCheckOutStartedEvent
- ConnectionCheckOutFailedEvent
- ConnectionCheckedOutEvent
- ConnectionCheckedInEvent
- CommandStartedEvent
- CommandSucceededEvent
- CommandFailedEvent
- database:
id: &database0 database0
client: *client0
Expand Down
Loading

0 comments on commit 5bf2456

Please sign in to comment.