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
- buildLocalPayload(testInfo) {
55
+ buildTestPayloadForWDIO(testInfo) {
56
56
  return {
57
57
  testTitle: testInfo.title,
58
- testStatus: testInfo.status || testInfo.state,
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: null,
67
- pipelineId: null,
68
- commitSha: null,
69
- branch: null,
70
- runUrl: null,
71
- provider: null
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 sendLocalTestResult(testInfo) {
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.buildLocalPayload(testInfo);
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
- buildLocalPayload(testInfo) {
53
+ buildTestPayloadForWDIO(testInfo) {
54
54
  return {
55
55
  testTitle: testInfo.title,
56
- testStatus: testInfo.status || testInfo.state,
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: null,
65
- pipelineId: null,
66
- commitSha: null,
67
- branch: null,
68
- runUrl: null,
69
- provider: null
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 sendLocalTestResult(testInfo) {
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.buildLocalPayload(testInfo);
106
+ const payload = this.buildTestPayloadForWDIO(testInfo);
107
107
  const response = await this.sendPOSTRequest(
108
108
  `${this.baseUrl}${this.testResultsEndpoint}`,
109
109
  payload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engine-dependency",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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",