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

Function withV4

tests/functional/aws-node-sdk/test/support/withV4.js:3–21  ·  view source on GitHub ↗
(testFn)

Source from the content-addressed store, hash-verified

1const versions = ['default', 'v4'];
2
3function withV4(testFn) {
4 versions.forEach(version => {
5 let config;
6
7 if (version === 'v4') {
8 config = {
9 signatureVersion: version,
10 };
11 } else {
12 config = {};
13 }
14
15 describe(`With ${version} signature`, (cfg =>
16 function tcWrap() {
17 testFn.call(this, cfg);
18 }
19 )(config));
20 });
21}
22
23module.exports = withV4;

Callers 15

get.jsFile · 0.85
head.jsFile · 0.85
getLocation.jsFile · 0.85
put.jsFile · 0.85
getWebsite.jsFile · 0.85
deleteWebsite.jsFile · 0.85
putAcl.jsFile · 0.85
getCors.jsFile · 0.85
putCors.jsFile · 0.85
putWebsite.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected