-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow test for testing an invalid expression
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
packages/nodes-base/nodes/GraphQL/test/workflow.error_invalid_expression.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"meta": { | ||
"templateId": "216", | ||
"instanceId": "ee90fdf8d57662f949e6c691dc07fa0fd2f66e1eee28ed82ef06658223e67255" | ||
}, | ||
"nodes": [ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://graphql-teas-endpoint.netlify.app/", | ||
"requestFormat": "json", | ||
"query": "query getAllTeas($name: String) {\n teas(name: $name) {\n name,\n id\n }\n}", | ||
"variables": "={{ 1 }}" | ||
}, | ||
"id": "7aece03f-e0d9-4f49-832c-fc6465613ca7", | ||
"name": "Test: Errors on unsuccessful Expression validation", | ||
"type": "n8n-nodes-base.graphql", | ||
"typeVersion": 1, | ||
"position": [660, 200], | ||
"onError": "continueRegularOutput" | ||
} | ||
], | ||
"connections": {}, | ||
"pinData": { | ||
"Test: Errors on unsuccessful Expression validation": [ | ||
{ | ||
"json": { | ||
"error": "Using variables failed:\n1\n\nGraphQL variables should be either an object or a string." | ||
} | ||
} | ||
] | ||
} | ||
} |