97 lines
1.8 KiB
JSON
97 lines
1.8 KiB
JSON
{
|
|
"description": "deleteMany",
|
|
"schemaVersion": "1.3",
|
|
"runOnRequirements": [
|
|
{
|
|
"minServerVersion": "3.6",
|
|
"topologies": [
|
|
"replicaset",
|
|
"sharded",
|
|
"load-balanced"
|
|
]
|
|
}
|
|
],
|
|
"createEntities": [
|
|
{
|
|
"client": {
|
|
"id": "client0",
|
|
"useMultipleMongoses": true,
|
|
"observeEvents": [
|
|
"commandStartedEvent"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"database": {
|
|
"id": "database0",
|
|
"client": "client0",
|
|
"databaseName": "retryable-writes-tests"
|
|
}
|
|
},
|
|
{
|
|
"collection": {
|
|
"id": "collection0",
|
|
"database": "database0",
|
|
"collectionName": "coll"
|
|
}
|
|
}
|
|
],
|
|
"initialData": [
|
|
{
|
|
"collectionName": "coll",
|
|
"databaseName": "retryable-writes-tests",
|
|
"documents": [
|
|
{
|
|
"_id": 1,
|
|
"x": 11
|
|
},
|
|
{
|
|
"_id": 2,
|
|
"x": 22
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"description": "DeleteMany ignores retryWrites",
|
|
"operations": [
|
|
{
|
|
"object": "collection0",
|
|
"name": "deleteMany",
|
|
"arguments": {
|
|
"filter": {}
|
|
},
|
|
"expectResult": {
|
|
"deletedCount": 2
|
|
}
|
|
}
|
|
],
|
|
"outcome": [
|
|
{
|
|
"collectionName": "coll",
|
|
"databaseName": "retryable-writes-tests",
|
|
"documents": []
|
|
}
|
|
],
|
|
"expectEvents": [
|
|
{
|
|
"client": "client0",
|
|
"events": [
|
|
{
|
|
"commandStartedEvent": {
|
|
"commandName": "delete",
|
|
"command": {
|
|
"txnNumber": {
|
|
"$$exists": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|