Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Dec 17, 2021
1 parent 14e2a26 commit f491972
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/mongoose_graphql_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ all() ->
admin_and_user_load_global_types,
{group, unprotected_graphql},
{group, protected_graphql},
{group, errors_handling},
{group, error_handling},
{group, permissions}].

groups() ->
[{protected_graphql, [parallel], protected_graphql()},
{unprotected_graphql, [parallel], unprotected_graphql()},
{errors_handling, [parallel], errors_handling()},
{error_handling, [parallel], error_handling()},
{permissions, [parallel], permissions()}].

protected_graphql() ->
Expand All @@ -41,7 +41,7 @@ unprotected_graphql() ->
unauth_can_execute_query,
unauth_can_execute_mutation].

errors_handling() ->
error_handling() ->
[should_catch_parsing_errors,
should_catch_type_check_params_errors,
should_catch_type_check_errors].
Expand Down Expand Up @@ -299,8 +299,7 @@ check_permissions(Config, Doc) ->
{ok, Ast} = graphql:parse(Doc),
{ok, #{ast := Ast2}} = graphql:type_check(Ep, Ast),
ok = graphql:validate(Ast2),
ok = mongoose_graphql_permissions:check_permissions(Op, false, Ast2),
ok.
ok = mongoose_graphql_permissions:check_permissions(Op, false, Ast2).

request(Doc, Authorized) ->
#{document => Doc,
Expand Down

0 comments on commit f491972

Please sign in to comment.