=== Test case: rest_SUITE:auth_fails_incorrect_creds/1 (click for source code)
=== Config value:
[{watchdog,<0.12760.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/rest_suite.auth_fails_incorrect_creds.11653.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:33:43
*** User 2022-01-27 15:33:43.687 ***
REST request fails:
Code: 401
Req: {<0.12785.1>,<<"/api/commands">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9752cd6e7ab64f38">>},
{<<"authorization">>,<<"Basic b2xhOm1hcHNh">>}],
<<>>}
Result: {{<<"401">>,<<"Unauthorized">>},
[{<<"www-authenticate">>,<<"Basic realm=\"mongooseim\"">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
{<<"content-length">>,<<"0">>}],
<<>>,145,469}
Params: #{body => <<>>,
creds => {<<"ola">>,<<"mapsa">>},
method => <<"GET">>,path => <<"/api/commands">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2022-01-27 15:33:43
=== successfully completed test case
=== === Returned value: {{<<"401">>,<<"Unauthorized">>},<<>>}