=== Test case: graphql_mnesia_SUITE:domain_admin_restore_test/1 (click for source code)

=== Config value:

    [{protocol,http},
     {domain_admin,{<<"admin@localhost">>,<<"30cf33c90fc605df">>}},
     {schema_endpoint,domain_admin},
     {watchdog,<0.32527.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_mnesia_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.graphql_mnesia_SUITE.logs/run.2024-04-22_17.35.01/graphql_mnesia_suite.domain_admin_restore_test.html"},
     {tc_group_properties,[{name,domain_admin_mnesia}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_mnesia_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.graphql_mnesia_SUITE.logs/run.2024-04-22_17.35.01/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cec807ac1e64.2024-04-22_17.28.38"

=== Started at 2024-04-22 17:35:12


*** CT 2024-04-22 17:35:12.901 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2740.html

*** User 2024-04-22 17:35:12.911 ***🔗
REST request fails:
Code: 401
Req: {<0.32563.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4deb23e80649620a">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AbG9jYWxob3N0OjMwY2YzM2M5MGZjNjA1ZGY=">>}],
      <<"{\"variables\":{\"path\":\"Path\"},\"query\":\"mutation ($path: String!) { mnesia { restore(path: $path) } }\"}">>}
Result: {{<<"401">>,<<"Unauthorized">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:35:12 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"161">>}],
         <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"mnesia\",\"restore\"],\"message\":\"Cannot execute query ROOT without a global admin permissions\"}]}">>,
         310,7534}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@localhost">>,<<"30cf33c90fc605df">>},
          method => <<"POST">>,
          role => {graphql,domain_admin},
          body =>
              <<"{\"variables\":{\"path\":\"Path\"},\"query\":\"mutation ($path: String!) { mnesia { restore(path: $path) } }\"}">>,
          return_maps => true,return_headers => true}

*** CT 2024-04-22 17:35:12.912 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2740.html



=== Ended at 2024-04-22 17:35:12
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result