-
Notifications
You must be signed in to change notification settings - Fork 246
DRIVERS-2524 do not create or drop eccCollection
#1396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a0e47a9
0c882b1
b7d37e8
c86aa74
e455139
7c06b67
593933c
229862f
8a600f4
e30e83f
f7c028a
48cb61c
72280f9
426533f
fbc7b17
234a07c
1996d63
4031787
1325094
fcbd905
c108dbb
b5adfda
09755f0
3fc008e
d202bb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
{ | ||
"escCollection": "enxcol_.default.esc", | ||
"eccCollection": "enxcol_.default.ecc", | ||
"ecocCollection": "enxcol_.default.ecoc", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kevinAlbs: I just noticed this, but if you're removing the metadata collections here, doesn't that make this file identical to its If so, would it make sense to just stick with a single file and update the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related PR where I encountered this: #1399 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Another difference: the field names for I suggest filing a DRIVERS ticket for the improvement. This change can be made in a separate PR to avoid adding unrelated changes to this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
"fields": [ | ||
{ | ||
"keyId": { | ||
|
@@ -33,4 +30,4 @@ | |
} | ||
} | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"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." | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Requires libmongocrypt 1.8.0. | ||
runOn: | ||
- minServerVersion: "6.0.0" | ||
maxServerVersion: "6.3.99" | ||
# FLE 2 Encrypted collections are not supported on standalone. | ||
topology: [ "replicaset", "sharded", "load-balanced" ] | ||
|
||
database_name: &database_name "default" | ||
collection_name: &collection_name "default" | ||
jmikola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
tests: | ||
- description: "driver returns an error if creating a QEv2 collection on unsupported server" | ||
clientOptions: | ||
autoEncryptOpts: | ||
kmsProviders: | ||
aws: {} # Credentials filled in from environment. | ||
encryptedFieldsMap: | ||
default.encryptedCollection: { | ||
"fields": [ | ||
{ | ||
"path": "firstName", | ||
"bsonType": "string", | ||
"keyId": { "$binary": { "base64": "AAAAAAAAAAAAAAAAAAAAAA==", "subType": "04" }} | ||
} | ||
] | ||
} | ||
|
||
operations: | ||
# Do an initial drop to remove collections that may exist from previous test runs. | ||
- 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." |
Uh oh!
There was an error while loading. Please reload this page.