PYTHON-2570 Resync unified tests version 1.1 or lower (#601)

This commit is contained in:
Shane Harvey 2021-04-27 14:00:21 -07:00 committed by GitHub
parent 0f8f9da2b8
commit 7c85710208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 490 additions and 61 deletions

View File

@ -0,0 +1,21 @@
{
"description": "entity-client-serverApi-version-type",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": {
"version": "1",
"deprecationErrors": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,21 @@
{
"description": "entity-client-serverApi-version-type",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": {
"version": "1",
"strict": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-serverApi-type",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-serverApi-version-required",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": {}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,20 @@
{
"description": "entity-client-serverApi-version-type",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": {
"version": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "expectedCommandEvent-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"foo": 0
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandFailedEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandFailedEvent": {
"commandName": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandStartedEvent-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"foo": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandStartedEvent-command-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"command": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandStartedEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"commandName": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandStartedEvent-databaseName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"databaseName": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandSucceededEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandSucceededEvent": {
"commandName": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedCommandEvent-commandSucceededEvent-reply-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandSucceededEvent": {
"reply": 0
}
}
]
}
]
}
]
}

View File

@ -0,0 +1,28 @@
{
"description": "expectedCommandEvent-maxProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {},
"commandSucceededEvent": {}
}
]
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedCommandEvent-minProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [],
"expectEvents": [
{
"client": "client0",
"events": [
{}
]
}
]
}
]
}

View File

@ -11,17 +11,12 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [],
"foo": 0
}
]
"client": "client0",
"events": [],
"foo": 0
}
]
}

View File

@ -11,15 +11,10 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"events": []
}
]
"events": []
}
]
}

View File

@ -11,16 +11,11 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": 0,
"events": []
}
]
"client": 0,
"events": []
}
]
}

View File

@ -11,17 +11,12 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
0
]
}
"client": "client0",
"events": [
0
]
}
]

View File

@ -11,15 +11,10 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0"
}
]
"client": "client0"
}
]
}

View File

@ -11,16 +11,11 @@
"tests": [
{
"description": "foo",
"operations": [
"operations": [],
"expectEvents": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": 0
}
]
"client": "client0",
"events": 0
}
]
}

View File

@ -0,0 +1,20 @@
{
"description": "entity-client-apiVersion-unsupported",
"schemaVersion": "1.1",
"createEntities": [
{
"client": {
"id": "client0",
"serverApi": {
"version": "server_will_never_support_this_api_version"
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,56 @@
{
"description": "operation-failure",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "operation-failure"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "coll0"
}
}
],
"tests": [
{
"description": "Unsupported command",
"operations": [
{
"name": "runCommand",
"object": "database0",
"arguments": {
"commandName": "unsupportedCommand",
"command": {
"unsupportedCommand": 1
}
}
}
]
},
{
"description": "Unsupported query operator",
"operations": [
{
"name": "find",
"object": "collection0",
"arguments": {
"filter": {
"$unsupportedQueryOperator": 1
}
}
}
]
}
]
}

View File

@ -297,13 +297,15 @@
"ordered": true
},
"expectResult": {
"insertedCount": {
"$$unsetOrMatches": 2
},
"insertedIds": {
"$$unsetOrMatches": {
"0": 3,
"1": 4
"$$unsetOrMatches": {
"insertedCount": {
"$$unsetOrMatches": 2
},
"insertedIds": {
"$$unsetOrMatches": {
"0": 3,
"1": 4
}
}
}
}