=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.40153.0>},
{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@ebff2ad0dd97.2024-04-23_10.53.20/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.03.00/muc_http_api_suite.invite_errors.46723.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@ebff2ad0dd97.2024-04-23_10.53.20/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.03.00/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@ebff2ad0dd97.2024-04-23_10.53.20"
=== Started at 2024-04-23 11:03:05
*** User 2024-04-23 11:03:05.580 ***🔗
REST request:
Code: 201
Req: {<0.40200.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f02fee47c71833ae">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1341@localhost\",\"name\":\"wonderland-85.556200\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-85.556200">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-85.556200">>,215,2768}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1341@localhost\",\"name\":\"wonderland-85.556200\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.593 ***🔗
REST request fails:
Code: 400
Req: {<0.40209.0>,<<"/api/mucs/localhost/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24c73cf4c2632ac8">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,1997}
Params: #{path => <<"/api/mucs/localhost/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.598 ***🔗
REST request fails:
Code: 400
Req: {<0.40215.0>,<<"/api/mucs/localhost/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"561d03a867ce0952">>}],
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,762}
Params: #{path => <<"/api/mucs/localhost/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.601 ***🔗
REST request fails:
Code: 400
Req: {<0.40221.0>,<<"/api/mucs/localhost/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d8e94233a5a2a2e">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,666}
Params: #{path => <<"/api/mucs/localhost/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.607 ***🔗
REST request fails:
Code: 400
Req: {<0.40229.0>,<<"/api/mucs/localhost/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"658d97762236abd4">>}],
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,805}
Params: #{path => <<"/api/mucs/localhost/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.616 ***🔗
REST request fails:
Code: 400
Req: {<0.40236.0>,<<"/api/mucs/localhost/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f234e965b732af67">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,7519}
Params: #{path => <<"/api/mucs/localhost/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.627 ***🔗
REST request fails:
Code: 404
Req: {<0.40242.0>,<<"/api/mucs/baddomain/wonderland-85.556200/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e11dc03044e6689">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,1023}
Params: #{path => <<"/api/mucs/baddomain/wonderland-85.556200/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
*** User 2024-04-23 11:03:05.636 ***🔗
REST request fails:
Code: 404
Req: {<0.40244.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f380b94a22707523">>}],
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:03:05 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,2192}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"recipient\":\"bOb_invite_errors_1341@localhost\",\"sender\":\"alicE_invite_errors_1341@localhost\",\"reason\":\"Join this room!\"}">>,
return_headers => true}
=== Ended at 2024-04-23 11:03:05
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}