MCPcopy
hub / github.com/scality/cloudserver / genUniqID

Function genUniqID

tests/functional/raw-node/utils/gcpUtils.js:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const { HeadBucketCommand } = require('@aws-sdk/client-s3');
5
6const genUniqID = () => {
7 const runId = process.env.GITHUB_RUN_ID;
8 const suffix = uuidv4().replace(/-/g, '').slice(0, 8);
9 return runId ? `${runId}-${suffix}` : uuidv4().replace(/-/g, '');
10};
11
12const genBucketName = testName => `cldsrvci-${testName}-${genUniqID()}`;
13

Callers 15

putSourceObjFunction · 0.85
copyObjectFunction · 0.85
azureObjectCopy.jsFile · 0.85
objectCopy.jsFile · 0.85
putSourceObjFunction · 0.85
getGcp.jsFile · 0.85
get.jsFile · 0.85
objectTagging.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected