diff --git a/test/datasets-live.jl b/test/datasets-live.jl index 28daab880..5fa0a5d02 100644 --- a/test/datasets-live.jl +++ b/test/datasets-live.jl @@ -8,6 +8,9 @@ function _get_user_groups_rest(auth::JuliaHub.Authentication) JuliaHub._throw_invalidresponse(r) end function _get_user_groups_gql(auth::JuliaHub.Authentication) + # Note: this query is newer than the one we use in src/userinfo.jl, and works + # with newer JuliaHub versions, whereas the other one specifically works with + # older versions. userinfo_gql = read(joinpath(@__DIR__, "userInfo.gql"), String) r = JuliaHub._gql_request(auth, userinfo_gql) r.status == 200 || error("Invalid response from GQL ($(r.status))\n$(r.body)") diff --git a/test/userInfo.gql b/test/userInfo.gql index 12df32a76..8b2a45580 100644 --- a/test/userInfo.gql +++ b/test/userInfo.gql @@ -1,5 +1,3 @@ -# roles = ["default", "customer_admin"] - query UserInfo { users(limit: 1) { id @@ -26,4 +24,4 @@ query UserInfo { accepted_tos survey_submitted_time } -} \ No newline at end of file +}