Add timeoutMS URI option and MongoClient keyword argument. Add provisional/beta pymongo.timeout() api to set a deadline for a block of operations.
75 lines
1.7 KiB
JSON
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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|