=== Test case: graphql_stats_SUITE:admin_stats_domain_test/1 (click for source code)

=== Config value:

    [{protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{host => "localhost",module => mongoose_graphql_handler,
                      password => <<"secret">>,path => "/api/graphql",
                      schema_endpoint => admin,sse_idle_timeout => 3600000,
                      username => <<"admin">>}},
     {watchdog,<0.30997.0>},
     {auth_mods,[ejabberd_auth_rdbms,ejabberd_auth_anonymous,
                 ejabberd_auth_rdbms]},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_stats_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.graphql_stats_SUITE.logs/run.2024-04-23_06.31.36/graphql_stats_suite.admin_stats_domain_test.html"},
     {tc_group_properties,[{name,admin_stats_http}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_stats_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@230e13636cf2.2024-04-23_06.26.02/big_tests.tests.graphql_stats_SUITE.logs/run.2024-04-23_06.31.36/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@230e13636cf2.2024-04-23_06.26.02"

=== Started at 2024-04-23 06:31:36


*** CT 2024-04-23 06:31:36.893 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2863.html

*** User 2024-04-23 06:31:36.896 ***🔗
REST request:
Code: 200
Req: {<0.31032.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6e54c211876cb2c2">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName!) { stat { domainStats(domain: $domain) { onlineUsers registeredUsers } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:31:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"71">>}],
         <<"{\"data\":{\"stat\":{\"domainStats\":{\"registeredUsers\":0,\"onlineUsers\":0}}}}">>,
         209,1198}
Params: #{body =>
              <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName!) { stat { domainStats(domain: $domain) { onlineUsers registeredUsers } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,admin},
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 06:31:36.898 ***🔗
REST request:
Code: 200
Req: {<0.31034.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"28cb458ceb31d8d3">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"domain\":\"Localhost\"},\"query\":\"query ($domain: DomainName!) { stat { domainStats(domain: $domain) { onlineUsers registeredUsers } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:31:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"71">>}],
         <<"{\"data\":{\"stat\":{\"domainStats\":{\"registeredUsers\":0,\"onlineUsers\":0}}}}">>,
         209,1003}
Params: #{body =>
              <<"{\"variables\":{\"domain\":\"Localhost\"},\"query\":\"query ($domain: DomainName!) { stat { domainStats(domain: $domain) { onlineUsers registeredUsers } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"POST">>,path => <<"/api/graphql">>,port => 5551,
          return_headers => true,return_maps => true,
          role => {graphql,admin},
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-23 06:31:36.900 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2863.html



=== Ended at 2024-04-23 06:31:36
=== successfully completed test case
=== === Returned value: ok


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