diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/README.md b/source/connection-monitoring-and-pooling/tests/cmap-format/README.md index 50d12f3458..fce9441fbe 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/README.md +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/README.md @@ -46,6 +46,7 @@ All Unit Tests have some of the following fields: - `type`: The type of event emitted - `address`: The address of the pool emitting the event - `connectionId`: The id of a connection associated with the event + - `duration`: The event duration - `options`: Options used to create the pool - `reason`: A reason giving more information on why the event was emitted - `ignore`: An array of event names to ignore diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.json index 41c522ae67..3f37f188c0 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.json @@ -22,7 +22,8 @@ { "type": "ConnectionCheckedOut", "connectionId": 1, - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckedIn", @@ -32,7 +33,8 @@ { "type": "ConnectionCheckedOut", "connectionId": 1, - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.yml index 5179432788..9dbd5aebe9 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkin-make-available.yml @@ -12,12 +12,14 @@ events: - type: ConnectionCheckedOut connectionId: 1 address: 42 + duration: 42 - type: ConnectionCheckedIn connectionId: 1 address: 42 - type: ConnectionCheckedOut connectionId: 1 address: 42 + duration: 42 ignore: - ConnectionPoolCreated - ConnectionPoolReady diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.json index d89b342605..c7e8914d45 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.json @@ -23,12 +23,14 @@ { "type": "ConnectionReady", "connectionId": 1, - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckedOut", "connectionId": 1, - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.yml index bbbd03ff5c..1d94778dd4 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-connection.yml @@ -13,9 +13,11 @@ events: - type: ConnectionReady connectionId: 1 address: 42 + duration: 42 - type: ConnectionCheckedOut connectionId: 1 address: 42 + duration: 42 ignore: - ConnectionPoolReady - ConnectionPoolCreated diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.json index ee2926e1c0..614403ef50 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.json @@ -38,7 +38,8 @@ { "type": "ConnectionCheckedOut", "address": 42, - "connectionId": 42 + "connectionId": 42, + "duration": 42 }, { "type": "ConnectionCheckedIn", @@ -56,6 +57,7 @@ { "type": "ConnectionCheckOutFailed", "address": 42, + "duration": 42, "reason": "poolClosed" } ], diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.yml index 4d1b0f3b29..2d0ce8d111 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-error-closed.yml @@ -21,6 +21,7 @@ events: - type: ConnectionCheckedOut address: 42 connectionId: 42 + duration: 42 - type: ConnectionCheckedIn address: 42 connectionId: 42 @@ -30,6 +31,7 @@ events: address: 42 - type: ConnectionCheckOutFailed address: 42 + duration: 42 reason: poolClosed ignore: - ConnectionPoolReady diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.json index 84ddf8fdba..4d9fda1a68 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.json @@ -89,7 +89,8 @@ { "type": "ConnectionCheckOutFailed", "reason": "timeout", - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.yml index 383f666ad0..3c6fb5da21 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.yml @@ -60,6 +60,7 @@ events: - type: ConnectionCheckOutFailed reason: timeout address: 42 + duration: 42 ignore: - ConnectionCreated - ConnectionCheckedIn diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.json index d4aef928c7..e6077f12a5 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.json @@ -59,7 +59,8 @@ }, { "type": "ConnectionCheckedOut", - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckOutStarted", @@ -76,17 +77,20 @@ { "type": "ConnectionCheckOutFailed", "reason": "connectionError", - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckOutFailed", "reason": "connectionError", - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckOutFailed", "reason": "connectionError", - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.yml index 521f8ed245..388056f4fd 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-clears-waitqueue.yml @@ -38,6 +38,7 @@ events: address: 42 - type: ConnectionCheckedOut address: 42 + duration: 42 - type: ConnectionCheckOutStarted address: 42 - type: ConnectionCheckOutStarted @@ -47,12 +48,15 @@ events: - type: ConnectionCheckOutFailed reason: connectionError address: 42 + duration: 42 - type: ConnectionCheckOutFailed reason: connectionError address: 42 + duration: 42 - type: ConnectionCheckOutFailed reason: connectionError address: 42 + duration: 42 ignore: - ConnectionPoolReady - ConnectionPoolCleared diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.json index 800c3545ad..88c2988ac5 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.json @@ -40,7 +40,8 @@ { "type": "ConnectionCheckedOut", "address": 42, - "connectionId": 42 + "connectionId": 42, + "duration": 42 }, { "type": "ConnectionPoolCleared", @@ -49,6 +50,7 @@ { "type": "ConnectionCheckOutFailed", "address": 42, + "duration": 42, "reason": "connectionError" }, { @@ -57,7 +59,8 @@ }, { "type": "ConnectionCheckedOut", - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.yml index c783d4d096..93c85bfbef 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-ready.yml @@ -20,15 +20,18 @@ events: - type: ConnectionCheckedOut address: 42 connectionId: 42 + duration: 42 - type: ConnectionPoolCleared address: 42 - type: ConnectionCheckOutFailed address: 42 + duration: 42 reason: connectionError - type: ConnectionPoolReady address: 42 - type: ConnectionCheckedOut address: 42 + duration: 42 ignore: - ConnectionPoolCreated - ConnectionReady diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.json index 29ce7326cf..a90aed04d0 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.json @@ -31,7 +31,8 @@ { "type": "ConnectionCheckOutFailed", "reason": "connectionError", - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionPoolReady", @@ -47,7 +48,8 @@ }, { "type": "ConnectionCheckedOut", - "address": 42 + "address": 42, + "duration": 42 } ], "ignore": [ diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.yml index 730d4d27b7..2332099393 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-ready.yml @@ -17,6 +17,7 @@ events: - type: ConnectionCheckOutFailed reason: connectionError address: 42 + duration: 42 - type: ConnectionPoolReady address: 42 - type: ConnectionCheckOutStarted @@ -25,6 +26,7 @@ events: address: 42 - type: ConnectionCheckedOut address: 42 + duration: 42 ignore: - ConnectionPoolCreated - ConnectionReady diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.json b/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.json index fbcbdfb04d..8bd7c49499 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.json +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.json @@ -48,7 +48,8 @@ { "type": "ConnectionCheckedOut", "connectionId": 42, - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckOutStarted", @@ -57,7 +58,8 @@ { "type": "ConnectionCheckOutFailed", "reason": "timeout", - "address": 42 + "address": 42, + "duration": 42 }, { "type": "ConnectionCheckedIn", diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.yml index 5433c14898..fdb3b58629 100644 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.yml +++ b/source/connection-monitoring-and-pooling/tests/cmap-format/wait-queue-timeout.yml @@ -32,11 +32,13 @@ events: - type: ConnectionCheckedOut connectionId: 42 address: 42 + duration: 42 - type: ConnectionCheckOutStarted address: 42 - type: ConnectionCheckOutFailed reason: timeout address: 42 + duration: 42 - type: ConnectionCheckedIn connectionId: 42 address: 42