engine-dependency 1.0.6 → 1.0.7
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.
|
@@ -52,10 +52,10 @@ class TestInformationService extends services_base_service.default {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
buildTestPayloadForWDIO(testInfo) {
|
|
56
56
|
return {
|
|
57
57
|
testTitle: testInfo.title,
|
|
58
|
-
testStatus: testInfo.
|
|
58
|
+
testStatus: testInfo.state,
|
|
59
59
|
duration: testInfo.duration,
|
|
60
60
|
testFile: testInfo.file,
|
|
61
61
|
testProject: process.env.PROJECT_NAME,
|
|
@@ -63,12 +63,12 @@ class TestInformationService extends services_base_service.default {
|
|
|
63
63
|
retry: testInfo.retry ?? 0,
|
|
64
64
|
tags: testInfo.tags || [],
|
|
65
65
|
environment: process.env.ENV,
|
|
66
|
-
testInfo:
|
|
67
|
-
pipelineId:
|
|
68
|
-
commitSha:
|
|
69
|
-
branch:
|
|
70
|
-
runUrl:
|
|
71
|
-
provider:
|
|
66
|
+
testInfo: {},
|
|
67
|
+
pipelineId: "",
|
|
68
|
+
commitSha: "",
|
|
69
|
+
branch: "",
|
|
70
|
+
runUrl: "",
|
|
71
|
+
provider: ""
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -96,7 +96,7 @@ class TestInformationService extends services_base_service.default {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
async
|
|
99
|
+
async sendWDIOTestResult(testInfo) {
|
|
100
100
|
try {
|
|
101
101
|
|
|
102
102
|
const token = await this.generateToken();
|
|
@@ -105,7 +105,7 @@ class TestInformationService extends services_base_service.default {
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
const payload = this.
|
|
108
|
+
const payload = this.buildTestPayloadForWDIO(testInfo);
|
|
109
109
|
const response = await this.sendPOSTRequest(
|
|
110
110
|
`${this.baseUrl}${this.testResultsEndpoint}`,
|
|
111
111
|
payload,
|
|
@@ -50,10 +50,10 @@ class TestInformationService extends BaseService {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
buildTestPayloadForWDIO(testInfo) {
|
|
54
54
|
return {
|
|
55
55
|
testTitle: testInfo.title,
|
|
56
|
-
testStatus: testInfo.
|
|
56
|
+
testStatus: testInfo.state,
|
|
57
57
|
duration: testInfo.duration,
|
|
58
58
|
testFile: testInfo.file,
|
|
59
59
|
testProject: process.env.PROJECT_NAME,
|
|
@@ -61,12 +61,12 @@ class TestInformationService extends BaseService {
|
|
|
61
61
|
retry: testInfo.retry ?? 0,
|
|
62
62
|
tags: testInfo.tags || [],
|
|
63
63
|
environment: process.env.ENV,
|
|
64
|
-
testInfo:
|
|
65
|
-
pipelineId:
|
|
66
|
-
commitSha:
|
|
67
|
-
branch:
|
|
68
|
-
runUrl:
|
|
69
|
-
provider:
|
|
64
|
+
testInfo: {},
|
|
65
|
+
pipelineId: "",
|
|
66
|
+
commitSha: "",
|
|
67
|
+
branch: "",
|
|
68
|
+
runUrl: "",
|
|
69
|
+
provider: ""
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -94,7 +94,7 @@ class TestInformationService extends BaseService {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
async
|
|
97
|
+
async sendWDIOTestResult(testInfo) {
|
|
98
98
|
try {
|
|
99
99
|
|
|
100
100
|
const token = await this.generateToken();
|
|
@@ -103,7 +103,7 @@ class TestInformationService extends BaseService {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
const payload = this.
|
|
106
|
+
const payload = this.buildTestPayloadForWDIO(testInfo);
|
|
107
107
|
const response = await this.sendPOSTRequest(
|
|
108
108
|
`${this.baseUrl}${this.testResultsEndpoint}`,
|
|
109
109
|
payload,
|