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

Fixed issue with lack of clear message for erroneous suite definition #432

Merged
merged 7 commits into from
Jan 23, 2019

Conversation

fbatk
Copy link
Contributor

@fbatk fbatk commented Nov 19, 2018

Description

Fixed issue with lack of clear message for erroneous suite definition.

Motivation and Context

Before that fix, if there were errors in the response, they were returned in HTML format, containing a lot of unnecessary fluff.
This bugfix changes that, so that the response in JSON format is returned (as it has been the case for successful response). The aet.sh script has also been modified to accommodate that change.

ISSUE 414

Screenshots (if appropriate)

Upgrade notes (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • I have reviewed (and updated if needed) the documentation regarding this change

I hereby agree to the terms of the AET Contributor License Agreement.

@@ -81,8 +81,9 @@ function process_locked_suite {
((UNLOCK_TIMEOUT-=5))
start_suite
else
errorMessage=$(echo $body | jq -r ".errorMessage")
echo "Unsuccessful Request to \"$endpoint$SUITE_ENDPOINT\", status: $code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change the message to:

"Unsuccessful Request to "$endpoint$SUITE_ENDPOINT", status: $code, error: $errorMessage"

Copy link
Contributor Author

@fbatk fbatk Nov 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@tkaik tkaik added the QA Required Requires manual tests, possible regression or impact on existing features. label Nov 26, 2018
@Asia95
Copy link

Asia95 commented Jan 23, 2019

tested, working well ✔️

@tkaik tkaik merged commit f9c48ac into master Jan 23, 2019
@tkaik tkaik deleted the bugfix/syntax-error-message-fix branch January 23, 2019 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Required Requires manual tests, possible regression or impact on existing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants