@getjones/test-infra 4.5.12 → 4.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getjones/test-infra",
3
- "version": "4.5.12",
3
+ "version": "4.5.13",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@ const Endpoints = {
18
18
  getAuditMetadata: auditId => `${backendUrl}/saas/auditor/audit-metadata/${auditId}`,
19
19
  updateComplianceAuditActionsDate: recordId => `${backendUrl}/saas/automation/record/${recordId}/update-audit-actions-date`,
20
20
  auditRawData: recordId => `${backendUrl}/saas/integration-tests/record/${recordId}/audit/raw`,
21
- getAuditResultAttributeState: auditId => `${backendUrl}/saas/audit/automation/audit/${auditId}`
21
+ getAuditResultAttributeState: auditId => `${backendUrl}/saas/automation/audit/${auditId}`
22
22
  };
23
23
 
24
24
  const submitAudit = async (auditRequestModel, context) => {
@@ -88,7 +88,7 @@ const getAuditRawData = (recordId, context) => {
88
88
  };
89
89
 
90
90
  const getAuditResultAttributeState = (auditId, context) => {
91
- return requests.getRequestHandler(Endpoints.getAuditResultAttributeState(auditId), {}, context);
91
+ return requests.getRequestHandler(Endpoints.getAuditResultAttributeState(auditId), {}, context, {});
92
92
  };
93
93
 
94
94
  module.exports = {
@@ -283,10 +283,10 @@ const getAuditResultAttributeState = async function(auditId, context) {
283
283
  const attributeStateResponse = await auditApi.getAuditResultAttributeState(auditId, context);
284
284
 
285
285
  if (attributeStateResponse.status !== httpResponseStatusCodes.OK) {
286
- throw Error(`Failed to get audit result attribute state\n${JSON.stringify(attributeStateResponse)}`);
286
+ throw Error(`Failed to get audit result attribute state, status - ${attributeStateResponse.status}`);
287
287
  }
288
288
 
289
- return response.data;
289
+ return attributeStateResponse.data;
290
290
  };
291
291
 
292
292
  module.exports = {