-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added ShellCheck check #55
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
It really doesn't like the way we use colors with printf |
}' <<< "$request_body" | ||
) | ||
fi | ||
if ! [ -z "$run_name" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think passing run_name
was missing - so I added it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do I test for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to find all the mutations where this needs to be added as a parameter and add it to their request body. Also, unfortunately the rest endpoint mutations need to be changed first, otherwise they'll fail on unexpected param (see https://github.com/hasura/graphql-engine/blob/master/rfcs/rest-endpoints.md#response-codes)
Maybe we can make these changes in a separate PR(s).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do I test for it?
The tests just compare the expected and actual payload to hasura rest endpoints.
) | ||
fi | ||
} | ||
|
||
function sendEventToFaros() { | ||
log "Sending event to Faros..." | ||
|
||
http_response=$(curl --retry 5 --retry-delay 5 \ | ||
--silent --write-out "HTTPSTATUS:%{http_code}" -X POST \ | ||
http_response=$(curl -s -S --retry 5 --retry-delay 5 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-S
was added to print connection errors out as well
…i into tovbinm-patch-2
About
Added ShellCheck check eliminate bugs in the shell script
Screenshots
Extras