Skip to content
Merged
Changes from all commits
Commits
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
10 changes: 9 additions & 1 deletion packages/cli-repl/test/e2e-fle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { once } from 'events';
import { serialize } from 'v8';
import { inspect } from 'util';
import path from 'path';
import os from 'os';

describe('FLE tests', () => {
const testServer = startTestServer('not-shared', '--replicaset', '--nodes', '1');
Expand Down Expand Up @@ -258,7 +259,14 @@ describe('FLE tests', () => {
context('6.0+', () => {
skipIfServerVersion(testServer, '< 6.0'); // FLE2 only available on 6.0+

it('allows explicit encryption with bypassQueryAnalysis', async() => {
it('allows explicit encryption with bypassQueryAnalysis', async function() {
if (os.type() === 'Darwin' && +os.release().split('.')[0] < 20) {
// Indexed search is not supported on macOS 10.14 (which in turn is
// not supported by 6.0+ servers anyway).
// See e.g. https://jira.mongodb.org/browse/MONGOCRYPT-440
return this.skip();
}

// No --cryptSharedLibPath since bypassQueryAnalysis is also a community edition feature
const shell = TestShell.start({ args: ['--nodb'] });
const uri = JSON.stringify(await testServer.connectionString());
Expand Down