graphql-engine/server/tests-py/queries/endpoints/endpoint_as_user_err.yaml
Solomon Bothwell d88e2bbcce server: add tests ensuring the correct functioning of all endpoints based on user roles
https://github.com/hasura/graphql-engine-mono/pull/1625

Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
GitOrigin-RevId: 6b56efc838d2ed1acc44b2847161fde22d6aee17
2021-07-16 16:09:25 +00:00

12 lines
302 B
YAML

- description: call the new custom endpoint with the wrong role
url: /api/rest/simple
headers:
X-Hasura-Role: user
method: GET
status: 400
query:
response:
path: $.selectionSet.test_table
error: "field \"test_table\" not found in type: 'query_root'"
code: validation-failed