From c3a8256968e540cd5bcde372c8ba4dfaeec137e4 Mon Sep 17 00:00:00 2001 From: Japneet Singh Chawla Date: Fri, 1 Jul 2022 17:49:34 +0530 Subject: [PATCH] build url changes --- commands/utils/batch/batch_runner.js | 6 +++++- commands/utils/constants.js | 12 +----------- commands/utils/uploader.js | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) 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);