Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c6f645d
add qe to unified tests
mdb-ad Jan 23, 2025
aa51fc3
move encryptedFields to initialData
mdb-ad Feb 6, 2025
fe8ed1c
Apply suggestions from code review
mdb-ad Feb 7, 2025
44d883c
poc test feedback
mdb-ad Feb 12, 2025
ad2fd55
make keyVaultNamespace required
mdb-ad Feb 12, 2025
573aac1
remaining auto encrypt options
mdb-ad Feb 12, 2025
112d5bd
simple schema for schemaMap and encryptedFieldsMap
mdb-ad Feb 13, 2025
f910f65
convert localSchema.yml
mdb-ad Feb 14, 2025
364eb4c
convert fle2v2-EncryptedFields-vs-EncryptedFieldsMap
mdb-ad Feb 15, 2025
01505fc
document auto encrypt fields
mdb-ad Feb 15, 2025
87d3c41
client bulkWrite test
mdb-ad Feb 24, 2025
7f4021a
Merge branch 'master' into bulkwrite-qe
mdb-ad Mar 17, 2025
bd7a0fc
keyvault namespace
mdb-ad Apr 18, 2025
b2893e7
use unencrypted client to check collection contents
mdb-ad Apr 24, 2025
28b2ced
remove bulkWrite QE error
mdb-ad Apr 24, 2025
6415c1a
add csfle requirement to test
mdb-ad Jul 17, 2025
a388a7e
bulkWrite prose tests
mdb-ad Jul 23, 2025
148ed07
errorContains in test
mdb-ad Jul 23, 2025
10d34d7
tests draft
mdb-ad Aug 6, 2025
f85e42e
add limits-qe-doc
mdb-ad Aug 7, 2025
6a0daee
note server 8.0 requirement
mdb-ad Aug 14, 2025
90b3701
add limits-encryptedFields
mdb-ad Aug 14, 2025
c046c98
add language for auto-encryption to bulk write spec
isabelatkinson Aug 11, 2025
175096a
Merge branch 'master' into bulkwrite-qe
mdb-ad Aug 14, 2025
c6ca35a
Merge branch 'master' into bulkwrite-qe
mdb-ad Aug 14, 2025
0f4e11e
format
mdb-ad Aug 14, 2025
989e75d
Apply suggestions from code review
mdb-ad Aug 21, 2025
27a61ce
DRIVERS-3261 Remove IndexNotFound error checks for dropIndex (#1827)
prestonvasquez Aug 20, 2025
6f40e94
minLibmongocryptVersion in tests
mdb-ad Aug 21, 2025
74d3d3e
rephrase server version minimum
mdb-ad Aug 21, 2025
35f636c
remove prose test 13
mdb-ad Aug 21, 2025
7aba088
format
mdb-ad Aug 21, 2025
666880f
restore prose test numbering
mdb-ad Aug 21, 2025
bb7e11a
Merge branch 'master' into bulkwrite-qe
mdb-ad Aug 21, 2025
8b628d6
removed test was 13
mdb-ad Aug 21, 2025
449dabd
no standalone on qe test
mdb-ad Aug 22, 2025
22d9625
update JSON file
kevinAlbs Aug 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
273 changes: 273 additions & 0 deletions source/crud/tests/unified/client-bulkWrite-qe.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 113 additions & 0 deletions source/crud/tests/unified/client-bulkWrite-qe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
description: client bulkWrite with queryable encryption
Comment thread
mdb-ad marked this conversation as resolved.

schemaVersion: "1.23"

runOnRequirements:
- minServerVersion: "8.0"
Comment thread
mdb-ad marked this conversation as resolved.
serverless: forbid # Serverless does not support bulkWrite: CLOUDP-256344.
Comment thread
mdb-ad marked this conversation as resolved.

createEntities:
- client:
id: &client0 client0
observeEvents:
- commandStartedEvent
- commandSucceededEvent
autoEncryptOpts:
keyVaultNamespace: keyvault.datakeys
kmsProviders:
local:
key: Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk
- database:
id: &database0 database0
client: *client0
databaseName: &database0Name crud-tests
- collection:
id: &collection0 collection0
database: *database0
collectionName: &collection0Name coll0
- database:
id: &database1 database1
client: *client0
databaseName: &database1Name keyvault
- collection:
id: &collection1 collection1
database: *database0
collectionName: &collection1Name datakeys


initialData:
- databaseName: *database1Name
collectionName: *collection1Name
documents:
- _id: &local_key_id { $binary: { base64: EjRWeBI0mHYSNBI0VniQEg==, subType: "04" } }
keyAltNames: ["local_key"]
keyMaterial: { $binary: { base64: sHe0kz57YW7v8g9VP9sf/+K1ex4JqKc5rf/URX3n3p8XdZ6+15uXPaSayC6adWbNxkFskuMCOifDoTT+rkqMtFkDclOy884RuGGtUysq3X7zkAWYTKi8QAfKkajvVbZl2y23UqgVasdQu3OVBQCrH/xY00nNAs/52e958nVjBuzQkSb1T8pKJAyjZsHJ60+FtnfafDZSTAIBJYn7UWBCwQ==, subType: "00" } }
creationDate: { $date: { $numberLong: "1641024000000" } }
updateDate: { $date: { $numberLong: "1641024000000" } }
status: 1
masterKey: &local_masterkey
provider: local
- databaseName: *database0Name
collectionName: *collection0Name
documents: []
createOptions:
encryptedFields: &encrypted_fields {'fields': [{'keyId': {'$binary': {'base64': 'EjRWeBI0mHYSNBI0VniQEg==', 'subType': '04'}}, 'path': 'encryptedInt', 'bsonType': 'int', 'queries': {'queryType': 'equality', 'contention': {'$numberLong': '0'}}}]}

_yamlAnchors:
namespace: &namespace "crud-tests.coll0"

tests:
- description: client bulkWrite QE replaceOne
operations:
- object: *collection0
name: insertMany
arguments:
documents:
- { _id: 1, encryptedInt: 11 }
- { _id: 2, encryptedInt: 22 }
- { _id: 3, encryptedInt: 33 }
- object: *client0
name: clientBulkWrite
arguments:
models:
- replaceOne:
namespace: *namespace
filter: { encryptedInt: { $eq: 11 } }
replacement: { encryptedInt: 44 }
expectResult:
insertedCount: 0
upsertedCount: 0
matchedCount: 1
modifiedCount: 1
deletedCount: 0
- object: *collection0
name: find
arguments:
filter: { encryptedInt: 44 }
expectResult:
- _id: 1
encryptedInt: 44
outcome:
- collectionName: *collection0Name
databaseName: *database0Name
documents:
- { _id: 1, encryptedInt: { $$type: binData }, __safeContent__: { $$type: array} }
Comment thread
mdb-ad marked this conversation as resolved.
- { _id: 2, encryptedInt: { $$type: binData }, __safeContent__: { $$type: array} }
- { _id: 3, encryptedInt: { $$type: binData }, __safeContent__: { $$type: array} }
- description: client bulkWrite QE with multiple replace fails
operations:
- object: *client0
name: clientBulkWrite
arguments:
models:
- replaceOne:
namespace: *namespace
filter: { encryptedInt: { $eq: 11 } }
replacement: { encryptedInt: 44 }
- replaceOne:
namespace: *namespace
filter: { encryptedInt: { $eq: 22 } }
replacement: { encryptedInt: 44 }
expectError:
# Expect error from mongocryptd or crypt_shared
isError: true
Comment thread
mdb-ad marked this conversation as resolved.