-
Notifications
You must be signed in to change notification settings - Fork 840
Adding unit test for parsing errors on frontend split queries #4504
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
Conversation
Signed-off-by: Mariana Franco <marfram@amazon.com>
Signed-off-by: Mariana Franco <marfram@amazon.com>
23a43b4 to
39a3956
Compare
| } | ||
| } | ||
|
|
||
| func Test_evaluateAtModifier_Error(t *testing.T) { |
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.
My opinion is that we should merge this test into Test_evaluateAtModifier. We can extend Test_evaluateAtModifier's parameter to have an optional expectedErrorCode, then go from there.
The reason I think so is because this function seems quite duplicated to Test_evaluateAtModifier. It's also easier to discover what test cases are there for at-modifiers if we group them into one function.
What do you think?
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.
Makes sense! I pushed a new commit with this change.
Signed-off-by: Mariana Franco <marfram@amazon.com>
c9bdf77 to
e01d967
Compare
alvinlin123
left a comment
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.
LGTM, thanks for the new tests!
pracucci
left a comment
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.
Thanks!
…project#4504) * Adding unit test for parsing errors on frontend split queries Signed-off-by: Mariana Franco <marfram@amazon.com> * Fix lint errors Signed-off-by: Mariana Franco <marfram@amazon.com> * Merging error test cases with success ones Signed-off-by: Mariana Franco <marfram@amazon.com> Signed-off-by: Manish Kumar Gupta <manishkg@microsoft.com>
…project#4504) * Adding unit test for parsing errors on frontend split queries Signed-off-by: Mariana Franco <marfram@amazon.com> * Fix lint errors Signed-off-by: Mariana Franco <marfram@amazon.com> * Merging error test cases with success ones Signed-off-by: Mariana Franco <marfram@amazon.com> Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Signed-off-by: Mariana Franco marfram@amazon.com
What this PR does:
Adds extra unit tests for the following fix: #4488
This will help to make sure 400s don't turn again to 500s.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]