Skip to content

Commit b1161f4

Browse files
authored
GODRIVER-2761 Skip QE tests against latest servers (#1221)
* sync fle2 tests to specifications commit baf3724155500acbb557e158b8a5d4334e7f3512 * skip QE tests on server 6.2.99+
1 parent a46ad91 commit b1161f4

32 files changed

+62
-16
lines changed

mongo/integration/client_side_encryption_prose_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ func TestClientSideEncryptionProse(t *testing.T) {
7878
},
7979
}
8080

81-
runOpts := mtest.NewOptions().MinServerVersion("6.0").Topologies(mtest.ReplicaSet, mtest.LoadBalanced, mtest.ShardedReplicaSet)
8281
mt.Run("1. custom key material test", func(mt *mtest.T) {
8382
const (
8483
dkCollection = "datakeys"
@@ -1534,6 +1533,7 @@ func TestClientSideEncryptionProse(t *testing.T) {
15341533
})
15351534
}
15361535
})
1536+
runOpts := mtest.NewOptions().MinServerVersion("6.0").MaxServerVersion("6.2.99").Topologies(mtest.ReplicaSet, mtest.LoadBalanced, mtest.ShardedReplicaSet)
15371537
mt.RunOpts("12. explicit encryption", runOpts, func(mt *mtest.T) {
15381538
// Test Setup ... begin
15391539
encryptedFields := readJSONFile(mt, "encrypted-fields.json")

mongo/integration/client_side_encryption_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ func TestFLE2DocsExample(t *testing.T) {
477477
// FLE 2 is not supported on Standalone topology.
478478
mtOpts := mtest.NewOptions().
479479
MinServerVersion("6.0").
480+
MaxServerVersion("6.2.99").
480481
Enterprise(true).
481482
CreateClient(false).
482483
Topologies(mtest.ReplicaSet,

testdata/client-side-encryption/legacy/fle2-BypassQueryAnalysis.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"runOn": [
33
{
4+
"maxServerVersion": "6.2.99",
45
"minServerVersion": "6.0.0",
56
"topology": [
67
"replicaset",

testdata/client-side-encryption/legacy/fle2-BypassQueryAnalysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
runOn:
2-
- minServerVersion: "6.0.0"
2+
- maxServerVersion: "6.2.99"
3+
# Do not test on server version >= 6.3.0. Server version >= 6.3.0 includes backwards breaking changes to FLE2 protocol. Refer: DRIVERS-2435
4+
minServerVersion: "6.0.0"
35
# FLE 2 Encrypted collections are not supported on standalone.
46
topology: [ "replicaset", "sharded", "load-balanced" ]
57
database_name: &database_name "default"

testdata/client-side-encryption/legacy/fle2-Compact.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"runOn": [
33
{
4+
"maxServerVersion": "6.2.99",
45
"minServerVersion": "6.0.0",
56
"topology": [
67
"replicaset",

testdata/client-side-encryption/legacy/fle2-Compact.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
runOn:
2-
- minServerVersion: "6.0.0"
2+
- maxServerVersion: "6.2.99"
3+
# Do not test on server version >= 6.3.0. Server version >= 6.3.0 includes backwards breaking changes to FLE2 protocol. Refer: DRIVERS-2435
4+
minServerVersion: "6.0.0"
35
# FLE 2 Encrypted collections are not supported on standalone.
46
topology: [ "replicaset", "sharded", "load-balanced" ]
57
database_name: &database_name "default"

testdata/client-side-encryption/legacy/fle2-CreateCollection.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"runOn": [
33
{
4+
"maxServerVersion": "6.2.99",
45
"minServerVersion": "6.0.0",
56
"topology": [
67
"replicaset",

testdata/client-side-encryption/legacy/fle2-CreateCollection.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This test requires libmongocrypt 1.5.0-alpha2.
22
runOn:
3-
- minServerVersion: "6.0.0"
3+
- maxServerVersion: "6.2.99"
4+
# Do not test on server version >= 6.3.0. Server version >= 6.3.0 includes backwards breaking changes to FLE2 protocol. Refer: DRIVERS-2435
5+
minServerVersion: "6.0.0"
46
# FLE 2 Encrypted collections are not supported on standalone.
57
topology: [ "replicaset", "sharded", "load-balanced" ]
68

testdata/client-side-encryption/legacy/fle2-DecryptExistingData.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"runOn": [
33
{
4+
"maxServerVersion": "6.2.99",
45
"minServerVersion": "6.0.0",
56
"topology": [
67
"replicaset",

testdata/client-side-encryption/legacy/fle2-DecryptExistingData.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
runOn:
2-
- minServerVersion: "6.0.0"
2+
- maxServerVersion: "6.2.99"
3+
# Do not test on server version >= 6.3.0. Server version >= 6.3.0 includes backwards breaking changes to FLE2 protocol. Refer: DRIVERS-2435
4+
minServerVersion: "6.0.0"
35
# FLE 2 Encrypted collections are not supported on standalone.
46
topology: [ "replicaset", "sharded", "load-balanced" ]
57
database_name: &database_name "default"

0 commit comments

Comments
 (0)