MCPcopy Create free account
hub / github.com/Automattic/mongoose / downloadCryptShared

Function downloadCryptShared

scripts/setup-encryption-tests.js:16–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 await writeFile('fle-cluster-config.json', JSON.stringify(configuration, null, 2));
15
16 async function downloadCryptShared() {
17 const crypt_shared_dir = await downloadMongoDb({
18 directory: join(runnerDir, 'crypt'),
19 version: serverVersion,
20 downloadOptions: {
21 enterprise: true,
22 crypt_shared: true
23 }
24 });
25
26 for (const dirEntry of await readdir(crypt_shared_dir)) {
27 if (/crypt/.test(dirEntry)) {
28 return join(crypt_shared_dir, dirEntry);
29 }
30 }
31 }
32
33 async function run() {
34 await rm(runnerDir, { recursive: true }).catch(() => {});

Callers 1

runFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected