=== Test case: muc_http_api_SUITE:room_creation_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.7168.1>},
{preset,"ldap_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@6316c584aa9e.2024-04-10_12.44.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.53.26/muc_http_api_suite.room_creation_errors.48899.html"},
{tc_group_properties,[{name,negative},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_http_api_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@6316c584aa9e.2024-04-10_12.44.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.53.26/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@6316c584aa9e.2024-04-10_12.44.10"
=== Started at 2024-04-10 12:53:31
*** User 2024-04-10 12:53:31.377 ***🔗
REST request fails:
Code: 400
Req: {<0.7207.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2b448673c8f24589">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing room name\"">>,145,573}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"nick\":\"nick\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:53:31.378 ***🔗
REST request fails:
Code: 400
Req: {<0.7213.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2191aa3ea77b2c56">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"name\":\"wonderland-11.371587\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"18">>}],
<<"\"Missing nickname\"">>,144,503}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"name\":\"wonderland-11.371587\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:53:31.380 ***🔗
REST request fails:
Code: 400
Req: {<0.7218.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"17d8c33e105cd938">>}],
<<"{\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Missing owner JID\"">>,145,520}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:53:31.381 ***🔗
REST request fails:
Code: 400
Req: {<0.7225.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"313d18620f10746c">>}],
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid room name\"">>,145,517}
Params: #{body =>
<<"{\"owner\":\"alicE_room_creation_errors_1350@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:53:31.382 ***🔗
REST request fails:
Code: 400
Req: {<0.7232.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"567520f314ee2aec">>}],
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"\"Invalid owner JID\"">>,145,539}
Params: #{body =>
<<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:53:31.384 ***🔗
REST request fails:
Code: 404
Req: {<0.7236.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"80a809e200dce64b">>}],
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:53:31 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Given user not found\"">>,146,563}
Params: #{body =>
<<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-11.371587\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-10 12:53:31
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}