PYTHON-3220 Add CSFLE spec test for auto encryption on a collection with no jsonSchema

This commit is contained in:
Shane Harvey 2022-04-20 12:01:26 -07:00
parent cfa2d990f0
commit fe057cf577

View File

@ -0,0 +1,67 @@
{
"runOn": [
{
"minServerVersion": "4.1.10"
}
],
"database_name": "default",
"collection_name": "unencrypted",
"tests": [
{
"description": "Insert on an unencrypted collection",
"clientOptions": {
"autoEncryptOpts": {
"kmsProviders": {
"aws": {}
}
}
},
"operations": [
{
"name": "insertOne",
"arguments": {
"document": {
"_id": 1
}
}
}
],
"expectations": [
{
"command_started_event": {
"command": {
"listCollections": 1,
"filter": {
"name": "unencrypted"
}
},
"command_name": "listCollections"
}
},
{
"command_started_event": {
"command": {
"insert": "unencrypted",
"documents": [
{
"_id": 1
}
],
"ordered": true
},
"command_name": "insert"
}
}
],
"outcome": {
"collection": {
"data": [
{
"_id": 1
}
]
}
}
}
]
}