Skip to content

Commit 70e89dc

Browse files
committed
[skip ci] test case fix for a6450e1
1 parent a6450e1 commit 70e89dc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

server/tests-py/queries/graphql_query/enums/introspect_user_role.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# https://github.com/hasura/graphql-engine/issues/5200
2+
3+
# NOTE:-
4+
# The GraphQL schema generation refactor (https://github.com/hasura/graphql-engine/pull/4111) auto fixes the
5+
# aforementioned issue, but in different way, by restricting the generation of *_by_pk root fields
6+
# when all primary key columns are not marked for selection in permission. The actual fix
7+
# (https://github.com/hasura/graphql-engine/pull/5522) is to generate the typeinfos for all primary key columns
8+
# irrespective of select permissions. So, the test case is modified accordingly to check
9+
# the absence of zones_by_pk query root field.
210
description: Test introspecting enum types as user role
311
url: /v1/graphql
412
status: 200
513
headers:
614
X-Hasura-Role: user
715
response:
816
data:
9-
country:
10-
kind: ENUM
11-
name: country_enum
12-
enumValues:
13-
- name: India
14-
description: Republic of India
15-
- name: USA
16-
description: United States of America
17+
query_root_fields:
18+
fields:
19+
- name: zones
1720
zones:
1821
fields:
1922
- name: code
@@ -27,12 +30,9 @@ response:
2730
query:
2831
query: |
2932
{
30-
country: __type(name: "country_enum") {
31-
name
32-
kind
33-
enumValues {
33+
query_root_fields: __type(name: "query_root") {
34+
fields {
3435
name
35-
description
3636
}
3737
}
3838
zones: __type(name: "zones") {

0 commit comments

Comments
 (0)