-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
378 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
test/integration/connection-monitoring-and-pooling/cmap-node-specs/pool-checkin-stats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"version": 1, | ||
"style": "unit", | ||
"description": "must correctly update pool stats when checking in a connection", | ||
"poolOptions": { | ||
"minPoolSize": 3 | ||
}, | ||
"operations": [ | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionCreated", | ||
"count": 3 | ||
}, | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionReady", | ||
"count": 3 | ||
}, | ||
{ | ||
"name": "checkOut", | ||
"label": "conn" | ||
}, | ||
{ | ||
"name": "checkIn", | ||
"connection": "conn" | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"type": "ConnectionPoolCreated", | ||
"address": 42, | ||
"options": 42, | ||
"totalConnectionCount": 0, | ||
"availableConnectionCount": 0, | ||
"pendingConnectionCount": 0, | ||
"currentCheckedOutCount": 0 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCheckedOut", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCheckedIn", | ||
"connectionId": 42, | ||
"address": 42, | ||
"currentCheckedOutCount": 0, | ||
"availableConnectionCount": 3, | ||
"pendingConnectionCount": 0, | ||
"totalConnectionCount": 3 | ||
} | ||
], | ||
"ignore": [ | ||
"ConnectionReady", | ||
"ConnectionClosed", | ||
"ConnectionCheckOutStarted" | ||
] | ||
} |
63 changes: 63 additions & 0 deletions
63
test/integration/connection-monitoring-and-pooling/cmap-node-specs/pool-checkout-stats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"version": 1, | ||
"style": "unit", | ||
"description": "must correctly update pool stats when checking out a connection", | ||
"poolOptions": { | ||
"minPoolSize": 3 | ||
}, | ||
"operations": [ | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionCreated", | ||
"count": 3 | ||
}, | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionReady", | ||
"count": 3 | ||
}, | ||
{ | ||
"name": "checkOut" | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"type": "ConnectionPoolCreated", | ||
"address": 42, | ||
"options": 42, | ||
"currentCheckedOutCount": 0, | ||
"availableConnectionCount": 0, | ||
"pendingConnectionCount": 0, | ||
"totalConnectionCount": 0 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42 | ||
}, | ||
{ | ||
"type": "ConnectionCheckedOut", | ||
"connectionId": 42, | ||
"address": 42, | ||
"currentCheckedOutCount": 1, | ||
"availableConnectionCount": 2, | ||
"pendingConnectionCount": 0, | ||
"totalConnectionCount": 3 | ||
} | ||
], | ||
"ignore": [ | ||
"ConnectionReady", | ||
"ConnectionClosed", | ||
"ConnectionCheckOutStarted" | ||
] | ||
} |
60 changes: 60 additions & 0 deletions
60
.../connection-monitoring-and-pooling/cmap-node-specs/pool-minPoolSize-population-stats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"version": 1, | ||
"style": "unit", | ||
"description": "must correctly update pool stats when populating the pool up to minPoolSize", | ||
"poolOptions": { | ||
"minPoolSize": 3 | ||
}, | ||
"operations": [ | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionCreated", | ||
"count": 3 | ||
}, | ||
{ | ||
"name": "waitForEvent", | ||
"event": "ConnectionReady", | ||
"count": 3 | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"type": "ConnectionPoolCreated", | ||
"address": 42, | ||
"options": 42, | ||
"currentCheckedOutCount": 0, | ||
"availableConnectionCount": 0, | ||
"pendingConnectionCount": 0, | ||
"totalConnectionCount": 0 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42, | ||
"currentCheckedOutCount": 0, | ||
"availableConnectionCount": 0, | ||
"pendingConnectionCount": 3, | ||
"totalConnectionCount": 3 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42, | ||
"availableConnectionCount": 1, | ||
"pendingConnectionCount": 2, | ||
"totalConnectionCount": 3 | ||
}, | ||
{ | ||
"type": "ConnectionCreated", | ||
"connectionId": 42, | ||
"address": 42, | ||
"availableConnectionCount": 2, | ||
"pendingConnectionCount": 1, | ||
"totalConnectionCount": 3 | ||
} | ||
], | ||
"ignore": [ | ||
"ConnectionReady", | ||
"ConnectionClosed" | ||
] | ||
} |
Oops, something went wrong.