mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
[skip ci] test case fix for a6450e126b
This commit is contained in:
parent
a6450e126b
commit
70e89dc250
@ -1,4 +1,12 @@
|
||||
# https://github.com/hasura/graphql-engine/issues/5200
|
||||
|
||||
# NOTE:-
|
||||
# The GraphQL schema generation refactor (https://github.com/hasura/graphql-engine/pull/4111) auto fixes the
|
||||
# aforementioned issue, but in different way, by restricting the generation of *_by_pk root fields
|
||||
# when all primary key columns are not marked for selection in permission. The actual fix
|
||||
# (https://github.com/hasura/graphql-engine/pull/5522) is to generate the typeinfos for all primary key columns
|
||||
# irrespective of select permissions. So, the test case is modified accordingly to check
|
||||
# the absence of zones_by_pk query root field.
|
||||
description: Test introspecting enum types as user role
|
||||
url: /v1/graphql
|
||||
status: 200
|
||||
@ -6,14 +14,9 @@ headers:
|
||||
X-Hasura-Role: user
|
||||
response:
|
||||
data:
|
||||
country:
|
||||
kind: ENUM
|
||||
name: country_enum
|
||||
enumValues:
|
||||
- name: India
|
||||
description: Republic of India
|
||||
- name: USA
|
||||
description: United States of America
|
||||
query_root_fields:
|
||||
fields:
|
||||
- name: zones
|
||||
zones:
|
||||
fields:
|
||||
- name: code
|
||||
@ -27,12 +30,9 @@ response:
|
||||
query:
|
||||
query: |
|
||||
{
|
||||
country: __type(name: "country_enum") {
|
||||
query_root_fields: __type(name: "query_root") {
|
||||
fields {
|
||||
name
|
||||
kind
|
||||
enumValues {
|
||||
name
|
||||
description
|
||||
}
|
||||
}
|
||||
zones: __type(name: "zones") {
|
||||
|
Loading…
Reference in New Issue
Block a user