...
1# Requires libmongocrypt 1.8.0.
2runOn:
3 - minServerVersion: "7.0.0"
4 # Skip QEv2 (also referred to as FLE2v2) tests on Serverless. Unskip once Serverless enables the QEv2 protocol.
5 # FLE 2 Encrypted collections are not supported on standalone.
6 topology: [ "replicaset", "sharded", "load-balanced" ]
7database_name: &database_name "default"
8collection_name: &collection_name "default"
9data: []
10key_vault_data: []
11encrypted_fields: {
12 "fields": []
13}
14tests:
15 - description: "insert with no encryption succeeds"
16 clientOptions:
17 autoEncryptOpts:
18 kmsProviders:
19 local: {'key': {'$binary': {'base64': 'Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk', 'subType': '00'}}}
20 operations:
21 - name: insertOne
22 arguments:
23 document: &doc0 {
24 _id: 1,
25 foo: "bar"
26 }
27 expectations:
28 - command_started_event:
29 command:
30 listCollections: 1
31 filter:
32 name: *collection_name
33 command_name: listCollections
34 - command_started_event:
35 command:
36 insert: *collection_name
37 documents:
38 - *doc0
39 ordered: true
40 command_name: insert
41 outcome:
42 collection:
43 data:
44 - *doc0
View as plain text