engine-dependency 1.0.2 → 1.0.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.
@@ -27,20 +27,20 @@ class TestInformationService extends services_base_service.default {
27
27
  buildTestPayload(testInfo) {
28
28
  return {
29
29
  testTitle: testInfo.titlePath?.join(' > ') || testInfo.title,
30
- testStatus: testInfo.status,
30
+ testStatus: testInfo.status || testInfo.state,
31
31
  duration: testInfo.duration,
32
32
  testFile: testInfo.file,
33
33
  testProject: process.env.PROJECT_NAME,
34
- retries: testInfo.retries ?? 0,
34
+ retries: (testInfo.retries || testInfo.retries?.length) ?? 0,
35
35
  retry: testInfo.retry ?? 0,
36
36
  tags: testInfo.tags || [],
37
37
  environment: process.env.ENV,
38
38
  testInfo: {
39
39
  title: testInfo.title,
40
- expectedStatus: testInfo.expectedStatus,
41
- annotations: testInfo.annotations || [],
42
- timeout: testInfo.timeout,
43
- errors: testInfo.errors || []
40
+ expectedStatus: testInfo.expectedStatus || null,
41
+ annotations: testInfo.annotations || null,
42
+ timeout: testInfo.timeout || testInfo.timedOut,
43
+ errors: testInfo.errors || testInfo.err || null
44
44
  },
45
45
  pipelineId: process.env.BUILD_BUILDID || null,
46
46
  commitSha: process.env.BUILD_SOURCEVERSION || null,
@@ -25,20 +25,20 @@ class TestInformationService extends BaseService {
25
25
  buildTestPayload(testInfo) {
26
26
  return {
27
27
  testTitle: testInfo.titlePath?.join(' > ') || testInfo.title,
28
- testStatus: testInfo.status,
28
+ testStatus: testInfo.status || testInfo.state,
29
29
  duration: testInfo.duration,
30
30
  testFile: testInfo.file,
31
31
  testProject: process.env.PROJECT_NAME,
32
- retries: testInfo.retries ?? 0,
32
+ retries: (testInfo.retries || testInfo.retries?.length) ?? 0,
33
33
  retry: testInfo.retry ?? 0,
34
34
  tags: testInfo.tags || [],
35
35
  environment: process.env.ENV,
36
36
  testInfo: {
37
37
  title: testInfo.title,
38
- expectedStatus: testInfo.expectedStatus,
39
- annotations: testInfo.annotations || [],
40
- timeout: testInfo.timeout,
41
- errors: testInfo.errors || []
38
+ expectedStatus: testInfo.expectedStatus || null,
39
+ annotations: testInfo.annotations || null,
40
+ timeout: testInfo.timeout || testInfo.timedOut,
41
+ errors: testInfo.errors || testInfo.err || null
42
42
  },
43
43
  pipelineId: process.env.BUILD_BUILDID || null,
44
44
  commitSha: process.env.BUILD_SOURCEVERSION || null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine-dependency",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Dependencia centralizada para envio de datos via API al servicio Data Engine",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",