=== Test case: rest_SUITE:auth_fails_incorrect_creds/1 (click for source code)

=== Config value:

    [{watchdog,<0.10883.2>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/rest_suite.auth_fails_incorrect_creds.161410.html"},
     {tc_group_properties,[{name,auth},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:27:37


*** CT 2022-03-04 11:27:37.586 *** View log from node mongooseim@localhost when started mongooseim@localhost_5882.html
*** CT 2022-03-04 11:27:37.586 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2335.html

*** User 2022-03-04 11:27:37.590 ***
REST request fails:
Code: 401
Req: {<0.10910.2>,<<"/api/commands">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0dd87e7b454e3f1b">>},
       {<<"authorization">>,<<"Basic b2xhOm1hcHNh">>}],
      <<>>}
Result: {{<<"401">>,<<"Unauthorized">>},
         [{<<"www-authenticate">>,<<"Basic realm=\"mongooseim\"">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,145,554}
Params: #{body => <<>>,
          creds => {<<"ola">>,<<"mapsa">>},
          method => <<"GET">>,path => <<"/api/commands">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2022-03-04 11:27:37.593 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2335.html
*** CT 2022-03-04 11:27:37.593 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5882.html



=== Ended at 2022-03-04 11:27:37
=== successfully completed test case
=== === Returned value: {{<<"401">>,<<"Unauthorized">>},<<>>}