=== Test case: graphql_domain_SUITE:domain_admin_disable_domain_no_permission/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@domain-admin.example.com">>, <<"03c6b076d11686db">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.17411.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"pgsql_cets"}, {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_domain_SUITE_data"}, {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@de8ed2e5223a.2024-04-19_08.28.58/big_tests.tests.graphql_domain_SUITE.logs/run.2024-04-19_08.31.17/graphql_domain_suite.domain_admin_disable_domain_no_permission.html"}, {tc_group_properties,[{name,domain_admin_tests},sequence]}, {tc_group_path,[]}, {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_domain_SUITE_data/"}, {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@de8ed2e5223a.2024-04-19_08.28.58/big_tests.tests.graphql_domain_SUITE.logs/run.2024-04-19_08.31.17/log_private/"}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@de8ed2e5223a.2024-04-19_08.28.58" === Started at 2024-04-19 08:31:26
*** User 2024-04-19 08:31:26.216 ***🔗 REST request fails: Code: 401 Req: {<0.17457.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"ddbe7db5ca725a87">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLWFkbWluLmV4YW1wbGUuY29tOjAzYzZiMDc2ZDExNjg2ZGI=">>}], <<"{\"variables\":{\"domain\":\"example.com\"},\"query\":\"mutation ($domain: DomainName!) { domain { disableDomain(domain: $domain) { domain hostType status } } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Fri, 19 Apr 2024 08:31:25 GMT">>}, {<<"content-length">>,<<"103">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"wrong_credentials\"},\"message\":\"The provided credentials are wrong\"}]}">>, 206,5832} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"example.com\"},\"query\":\"mutation ($domain: DomainName!) { domain { disableDomain(domain: $domain) { domain hostType status } } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain-admin.example.com">>,<<"03c6b076d11686db">>}, return_maps => true,return_headers => true}
*** User 2024-04-19 08:31:26.223 ***🔗 REST request fails: Code: 401 Req: {<0.17459.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"a255026d7ef10c44">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLWFkbWluLmV4YW1wbGUuY29tOjAzYzZiMDc2ZDExNjg2ZGI=">>}], <<"{\"variables\":{\"domain\":\"domain-admin.example.com\"},\"query\":\"mutation ($domain: DomainName!) { domain { disableDomain(domain: $domain) { domain hostType status } } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Fri, 19 Apr 2024 08:31:25 GMT">>}, {<<"content-length">>,<<"103">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"wrong_credentials\"},\"message\":\"The provided credentials are wrong\"}]}">>, 206,5704} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"domain-admin.example.com\"},\"query\":\"mutation ($domain: DomainName!) { domain { disableDomain(domain: $domain) { domain hostType status } } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain-admin.example.com">>,<<"03c6b076d11686db">>}, return_maps => true,return_headers => true}
=== Ended at 2024-04-19 08:31:26 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result