mongo-python-driver/test/unified-test-format/valid-pass/createEntities-operation.json
Shane Harvey 890cd26e1a
PYTHON-3288 Implement client side operation timeout (#954)
Add timeoutMS URI option and MongoClient keyword argument.
Add provisional/beta pymongo.timeout() api to set a deadline for a block of operations.
2022-06-06 15:36:52 -04:00

75 lines
1.7 KiB
JSON

{
"description": "createEntities-operation",
"schemaVersion": "1.9",
"tests": [
{
"description": "createEntities operation",
"operations": [
{
"name": "createEntities",
"object": "testRunner",
"arguments": {
"entities": [
{
"client": {
"id": "client1",
"observeEvents": [
"commandStartedEvent"
]
}
},
{
"database": {
"id": "database1",
"client": "client1",
"databaseName": "database1"
}
},
{
"collection": {
"id": "collection1",
"database": "database1",
"collectionName": "coll1"
}
}
]
}
},
{
"name": "deleteOne",
"object": "collection1",
"arguments": {
"filter": {
"_id": 1
}
}
}
],
"expectEvents": [
{
"client": "client1",
"events": [
{
"commandStartedEvent": {
"command": {
"delete": "coll1",
"deletes": [
{
"q": {
"_id": 1
},
"limit": 1
}
]
},
"commandName": "delete",
"databaseName": "database1"
}
}
]
}
]
}
]
}