95 lines
2.4 KiB
JSON
95 lines
2.4 KiB
JSON
{
|
|
"runOn": [
|
|
{
|
|
"minServerVersion": "6.0.0",
|
|
"maxServerVersion": "6.3.99",
|
|
"topology": [
|
|
"replicaset",
|
|
"sharded",
|
|
"load-balanced"
|
|
]
|
|
}
|
|
],
|
|
"database_name": "default",
|
|
"collection_name": "default",
|
|
"tests": [
|
|
{
|
|
"description": "driver returns an error if creating a QEv2 collection on unsupported server",
|
|
"clientOptions": {
|
|
"autoEncryptOpts": {
|
|
"kmsProviders": {
|
|
"aws": {}
|
|
},
|
|
"encryptedFieldsMap": {
|
|
"default.encryptedCollection": {
|
|
"fields": [
|
|
{
|
|
"path": "firstName",
|
|
"bsonType": "string",
|
|
"keyId": {
|
|
"$binary": {
|
|
"base64": "AAAAAAAAAAAAAAAAAAAAAA==",
|
|
"subType": "04"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"operations": [
|
|
{
|
|
"name": "dropCollection",
|
|
"object": "database",
|
|
"arguments": {
|
|
"collection": "encryptedCollection"
|
|
}
|
|
},
|
|
{
|
|
"name": "createCollection",
|
|
"object": "database",
|
|
"arguments": {
|
|
"collection": "encryptedCollection"
|
|
},
|
|
"result": {
|
|
"errorContains": "Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption."
|
|
}
|
|
},
|
|
{
|
|
"name": "assertCollectionNotExists",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"database": "default",
|
|
"collection": "enxcol_.encryptedCollection.esc"
|
|
}
|
|
},
|
|
{
|
|
"name": "assertCollectionNotExists",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"database": "default",
|
|
"collection": "enxcol_.encryptedCollection.ecc"
|
|
}
|
|
},
|
|
{
|
|
"name": "assertCollectionNotExists",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"database": "default",
|
|
"collection": "enxcol_.encryptedCollection.ecoc"
|
|
}
|
|
},
|
|
{
|
|
"name": "assertCollectionNotExists",
|
|
"object": "testRunner",
|
|
"arguments": {
|
|
"database": "default",
|
|
"collection": "encryptedCollection"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|