mongo-python-driver/test/unified-test-format/valid-pass/expectedError-errorResponse.json
Shane Harvey 0615df47b5
PYTHON-4112 Support named KMS providers (#1487)
Requires pymongocrypt >= 1.9.0 and libmongocrypt >= 1.9.0.
2024-01-30 12:00:24 -08:00

71 lines
1.4 KiB
JSON

{
"description": "expectedError-errorResponse",
"schemaVersion": "1.12",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "test"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "coll0"
}
}
],
"tests": [
{
"description": "Unsupported command",
"operations": [
{
"name": "runCommand",
"object": "database0",
"arguments": {
"commandName": "unsupportedCommand",
"command": {
"unsupportedCommand": 1
}
},
"expectError": {
"errorResponse": {
"errmsg": {
"$$type": "string"
}
}
}
}
]
},
{
"description": "Unsupported query operator",
"operations": [
{
"name": "find",
"object": "collection0",
"arguments": {
"filter": {
"$unsupportedQueryOperator": 1
}
},
"expectError": {
"errorResponse": {
"errmsg": {
"$$type": "string"
}
}
}
}
]
}
]
}