@testomatio/reporter 1.6.3-beta-artifacts-3 → 1.6.3-beta-artifacts-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/pipe_utils.js +3 -2
- package/package.json +1 -1
package/lib/utils/pipe_utils.js
CHANGED
|
@@ -7,15 +7,16 @@ const { APP_PREFIX } = require('../constants');
|
|
|
7
7
|
function setS3Credentials(artifacts) {
|
|
8
8
|
if (!Object.keys(artifacts).length) return;
|
|
9
9
|
|
|
10
|
-
console.log(APP_PREFIX, 'S3
|
|
10
|
+
console.log(APP_PREFIX, 'S3 credentials obtained from Testomat.io...');
|
|
11
11
|
|
|
12
12
|
if (artifacts.ACCESS_KEY_ID) process.env.S3_ACCESS_KEY_ID = artifacts.ACCESS_KEY_ID;
|
|
13
13
|
if (artifacts.SECRET_ACCESS_KEY) process.env.S3_SECRET_ACCESS_KEY = artifacts.SECRET_ACCESS_KEY;
|
|
14
14
|
if (artifacts.REGION) process.env.S3_REGION = artifacts.REGION;
|
|
15
15
|
if (artifacts.BUCKET) process.env.S3_BUCKET = artifacts.BUCKET;
|
|
16
|
-
if (artifacts.ENDPOINT) process.env.S3_ENDPOINT = artifacts.ENDPOINT;
|
|
17
16
|
if (artifacts.SESSION_TOKEN) process.env.S3_SESSION_TOKEN = artifacts.SESSION_TOKEN;
|
|
18
17
|
if (artifacts.presign) process.env.TESTOMATIO_PRIVATE_ARTIFACTS = '1';
|
|
18
|
+
// endpoint is not received from the server; and shuld be empty if IAM used (credentails obtained from the testomat)
|
|
19
|
+
process.env.S3_ENDPOINT = artifacts.ENDPOINT || '';
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Generates mode request parameters based on the input params.
|