Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hst 1508 incorrect gridname error message #942

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/helpers/atsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ exports.getTurboScaleGridDetails = async (bsConfig, args, rawArgs) => {
responseData = {};
}
if(response.status != 200) {
logger.warn(`Warn: Get Automate TurboScale Details Request failed with status code ${response.status}`);
if (responseData.message == Constants.validationMessages.GRID_NOT_FOUND) {
logger.error(`Error: Invalid grid name '${gridName}' specified.`);
} else {
logger.error(`Error:Failed to fetch turboscale grid details with response code ${resp.statusCode}`);
};
utils.sendUsageReport(bsConfig, args, responseData["error"], Constants.messageTypes.ERROR, 'get_ats_details_failed', null, rawArgs);
resolve({});
}
Expand Down
1 change: 1 addition & 0 deletions bin/helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const validationMessages = {
"You have specified '--record' flag but you've not provided the '--record-key' and we could not find any value in 'CYPRESS_RECORD_KEY' environment variable. Your record functionality on cypress.io dashboard might not work as it needs the key and projectId",
NODE_VERSION_PARSING_ERROR:
"We weren't able to successfully parse the specified nodeVersion. We will be using the default nodeVersion to run your tests.",
GRID_NOT_FOUND: "Not Found",
};

const cliMessages = {
Expand Down
Loading