-
Notifications
You must be signed in to change notification settings - Fork 50
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
updated logic for endNodePattern to include label information in the variable name #296
Conversation
Can you add a test that coveres the bug (with the wrong where-parameters) |
Added a test case to validate variable name in where condition. |
Hi @Andy2003 |
@@ -72,7 +86,24 @@ UNWIND [{ | |||
AS props | |||
|
|||
CREATE (p:Person)-[:WORKS_AT]->(c) | |||
SET p = props | |||
SET p = props; |
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.
why adding test data, if you don't use it in the 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.
In below tests, there are graphql queries which are filtering on node properties. So this "props" is required here.
But in my test case for "wrong variable name in where condition", props is not required. I will remove it from there.
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.
Removed unwanted data from my test case
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.
What I meant is that if you add test data, which is perfectly OK, then the test should also check if a particular query returns that data. This is tested using the following block:
.GraphQL-Response
[source,json,response=true,ignore-order]
----
{
"expected": "graphql response"
}
----
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.
Added Graphql Response
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.
Do you want to add integration test assertions?
Hi. |
You are talking about adding this response in my test, right?
|
Please fix the tests! |
Why did you close this PR? The reason the test ware failing here is, that the integration are also ran. These tests are disabled by default, so your |
I will take a look at this |
updated logic for endNodePattern to include label information in the variable name.
It fixes #295