|
| 1 | +{ |
| 2 | + "runOn": [ |
| 3 | + { |
| 4 | + "minServerVersion": "4.1.10" |
| 5 | + } |
| 6 | + ], |
| 7 | + "database_name": "default", |
| 8 | + "collection_name": "default", |
| 9 | + "data": [], |
| 10 | + "tests": [ |
| 11 | + { |
| 12 | + "description": "create is OK", |
| 13 | + "clientOptions": { |
| 14 | + "autoEncryptOpts": { |
| 15 | + "kmsProviders": { |
| 16 | + "local": { |
| 17 | + "key": { |
| 18 | + "$binary": { |
| 19 | + "base64": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk", |
| 20 | + "subType": "00" |
| 21 | + } |
| 22 | + } |
| 23 | + } |
| 24 | + } |
| 25 | + } |
| 26 | + }, |
| 27 | + "operations": [ |
| 28 | + { |
| 29 | + "name": "dropCollection", |
| 30 | + "object": "database", |
| 31 | + "arguments": { |
| 32 | + "collection": "unencryptedCollection" |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "createCollection", |
| 37 | + "object": "database", |
| 38 | + "arguments": { |
| 39 | + "collection": "unencryptedCollection", |
| 40 | + "validator": { |
| 41 | + "unencrypted_string": "foo" |
| 42 | + } |
| 43 | + } |
| 44 | + }, |
| 45 | + { |
| 46 | + "name": "assertCollectionExists", |
| 47 | + "object": "testRunner", |
| 48 | + "arguments": { |
| 49 | + "database": "default", |
| 50 | + "collection": "unencryptedCollection" |
| 51 | + } |
| 52 | + } |
| 53 | + ] |
| 54 | + }, |
| 55 | + { |
| 56 | + "description": "createIndexes is OK", |
| 57 | + "clientOptions": { |
| 58 | + "autoEncryptOpts": { |
| 59 | + "kmsProviders": { |
| 60 | + "local": { |
| 61 | + "key": { |
| 62 | + "$binary": { |
| 63 | + "base64": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk", |
| 64 | + "subType": "00" |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | + } |
| 70 | + }, |
| 71 | + "operations": [ |
| 72 | + { |
| 73 | + "name": "dropCollection", |
| 74 | + "object": "database", |
| 75 | + "arguments": { |
| 76 | + "collection": "unencryptedCollection" |
| 77 | + } |
| 78 | + }, |
| 79 | + { |
| 80 | + "name": "createCollection", |
| 81 | + "object": "database", |
| 82 | + "arguments": { |
| 83 | + "collection": "unencryptedCollection" |
| 84 | + } |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "runCommand", |
| 88 | + "object": "database", |
| 89 | + "arguments": { |
| 90 | + "command": { |
| 91 | + "createIndexes": "unencryptedCollection", |
| 92 | + "indexes": [ |
| 93 | + { |
| 94 | + "name": "name", |
| 95 | + "key": { |
| 96 | + "name": 1 |
| 97 | + } |
| 98 | + } |
| 99 | + ] |
| 100 | + } |
| 101 | + } |
| 102 | + }, |
| 103 | + { |
| 104 | + "name": "assertIndexExists", |
| 105 | + "object": "testRunner", |
| 106 | + "arguments": { |
| 107 | + "database": "default", |
| 108 | + "collection": "unencryptedCollection", |
| 109 | + "index": "name" |
| 110 | + } |
| 111 | + } |
| 112 | + ] |
| 113 | + } |
| 114 | + ] |
| 115 | +} |
0 commit comments