-
Notifications
You must be signed in to change notification settings - Fork 820
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 <[email protected]>
Signed-off-by: Mariana Franco <[email protected]>
23a43b4
to
39a3956
Compare
@@ -349,3 +351,31 @@ func Test_evaluateAtModifier(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
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 <[email protected]>
c9bdf77
to
e01d967
Compare
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!
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 <[email protected]> * Fix lint errors Signed-off-by: Mariana Franco <[email protected]> * Merging error test cases with success ones Signed-off-by: Mariana Franco <[email protected]> Signed-off-by: Manish Kumar Gupta <[email protected]>
…project#4504) * Adding unit test for parsing errors on frontend split queries Signed-off-by: Mariana Franco <[email protected]> * Fix lint errors Signed-off-by: Mariana Franco <[email protected]> * Merging error test cases with success ones Signed-off-by: Mariana Franco <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Mariana Franco [email protected]
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.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]