diff --git a/commands/utils/batch/batch_runner.js b/commands/utils/batch/batch_runner.js index 9614490..4c06b34 100644 --- a/commands/utils/batch/batch_runner.js +++ b/commands/utils/batch/batch_runner.js @@ -64,7 +64,11 @@ function run_test(payload, env = "prod", rejectUnauthorized) { ); console.log( `Uploaded tests successfully `, - responseData["value"]["message"] + responseData["value"]["message"].substr( + 0, + responseData["value"]["message"].length - + (session_id.length + 1) + ) ); resolve(session_id); } diff --git a/commands/utils/constants.js b/commands/utils/constants.js index 6aa5ab4..274e6ec 100644 --- a/commands/utils/constants.js +++ b/commands/utils/constants.js @@ -45,18 +45,8 @@ module.exports = { REPORT_URL: "https://stage-api.lambdatest.com/automation/api/v1/cypress/artefacts/test/", }, + stage_new: { - INTEGRATION_BASE_URL: "https://api.lambdatestinternal.com/liis", - BUILD_BASE_URL: - "https://api.lambdatestinternal.com/automation/api/v1/builds/", - BUILD_STOP_URL: - "https://api.lambdatestinternal.com/api/v1/test/stop?sessionId=", - SESSION_URL: - "https://api.lambdatestinternal.com/automation/api/v1/sessions?limit=200&session_id=", - REPORT_URL: - "https://api.lambdatestinternal.com/automation/api/v1/cypress/artefacts/test/", - }, - stage_new1: { INTEGRATION_BASE_URL: "https://prestage-api.lambdatest.com/liis", BUILD_BASE_URL: "https://prestage-api.lambdatest.com/automation/api/v1/builds/", diff --git a/commands/utils/uploader.js b/commands/utils/uploader.js index 5ede631..4dc187e 100644 --- a/commands/utils/uploader.js +++ b/commands/utils/uploader.js @@ -33,7 +33,7 @@ function get_signed_url(lt_config, prefix, env = "prod") { if (responseData && responseData["error"]) { reject(responseData["error"]); } else { - reject("error", responseData); + reject(responseData); } } else { resolve(responseData);