Skip to content

Commit 173b44f

Browse files
committed
test: skip unless 6.4.0 installed
1 parent 30b0611 commit 173b44f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/integration/client-side-encryption/client_side_encryption.spec.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ describe('Client Side Encryption (Legacy)', function () {
109109
if (typeof result === 'string') return result;
110110
}
111111

112+
if (['Insert with deterministic encryption, then find it'].includes(description)) {
113+
const result = configuration.filters.ClientSideEncryptionFilter.filter({
114+
metadata: { requires: { clientSideEncryption: '>=6.4.0' } }
115+
});
116+
117+
if (typeof result === 'string') return result;
118+
}
112119
return true;
113120
});
114121
});
@@ -142,12 +149,19 @@ describe('Client Side Encryption (Unified)', function () {
142149
'rewrap from aws:name1 to aws:name2',
143150
'can explicitly encrypt with a named KMS provider'
144151
];
152+
const dekExpirationTests = ['decrypt, wait, and decrypt again'];
145153
if (delegatedKMIPTests.includes(description)) {
146154
const shouldSkip = configuration.filters.ClientSideEncryptionFilter.filter({
147155
metadata: { requires: { clientSideEncryption: '>=6.0.1' } }
148156
});
149157
if (typeof shouldSkip === 'string') return shouldSkip;
150158
}
159+
if (dekExpirationTests.includes(description)) {
160+
const shouldSkip = configuration.filters.ClientSideEncryptionFilter.filter({
161+
metadata: { requires: { clientSideEncryption: '>=6.4.0' } }
162+
});
163+
if (typeof shouldSkip === 'string') return shouldSkip;
164+
}
151165

152166
return isServerless ? 'Unified CSFLE tests to not run on serverless' : false;
153167
}

0 commit comments

Comments
 (0)