@testomatio/reporter 1.6.3-beta-artifacts-3 → 1.6.3
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/data-storage.js +2 -2
- package/lib/utils/pipe_utils.js +3 -2
- package/package.json +1 -1
package/lib/data-storage.js
CHANGED
|
@@ -52,7 +52,7 @@ class DataStorage {
|
|
|
52
52
|
|
|
53
53
|
context = context || this.context || testRunnerHelper.getNameOfCurrentlyRunningTest();
|
|
54
54
|
if (!context) {
|
|
55
|
-
debug(`No context provided for "${dataType}" data:`, data);
|
|
55
|
+
// debug(`No context provided for "${dataType}" data:`, data);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const contextHash = stringToMD5Hash(context);
|
|
@@ -101,7 +101,7 @@ class DataStorage {
|
|
|
101
101
|
if (testDataFromFile.length) {
|
|
102
102
|
return testDataFromFile;
|
|
103
103
|
}
|
|
104
|
-
debug(`No "${dataType}" data for context "${contextHash}" in both file and global variable`);
|
|
104
|
+
// debug(`No "${dataType}" data for context "${contextHash}" in both file and global variable`);
|
|
105
105
|
|
|
106
106
|
// in case no data found for context
|
|
107
107
|
return null;
|
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.
|