mongo-python-driver/test/unified-test-format/valid-fail/assertNumberConnectionsCheckedOut.json
Shane Harvey 01e34cebdb
PYTHON-2769 Test redaction of replies to security-sensitive commands (#676)
Resync command monitoring and unified test format tests.
Redact entire hello response when the command started contained speculativeAuthenticate.
Make OP_REPLY cursor.cursor_id always be an Int64.
2021-07-15 14:12:11 -07:00

64 lines
1.4 KiB
JSON

{
"description": "assertNumberConnectionsCheckedOut",
"schemaVersion": "1.3",
"createEntities": [
{
"client": {
"id": "client0",
"useMultipleMongoses": true
}
}
],
"tests": [
{
"description": "operation fails if client field is not specified",
"operations": [
{
"name": "assertNumberConnectionsCheckedOut",
"object": "testRunner",
"arguments": {
"connections": 1
}
}
]
},
{
"description": "operation fails if connections field is not specified",
"operations": [
{
"name": "assertNumberConnectionsCheckedOut",
"object": "testRunner",
"arguments": {
"client": "client0"
}
}
]
},
{
"description": "operation fails if client entity does not exist",
"operations": [
{
"name": "assertNumberConnectionsCheckedOut",
"object": "testRunner",
"arguments": {
"client": "client1"
}
}
]
},
{
"description": "operation fails if number of connections is incorrect",
"operations": [
{
"name": "assertNumberConnectionsCheckedOut",
"object": "testRunner",
"arguments": {
"client": "client0",
"connections": 1
}
}
]
}
]
}