=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.8426.2>},
{preset,"pgsql_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@856ac683c987.2024-04-10_12.43.12/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.55.40/muc_http_api_suite.invite_errors.142211.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@856ac683c987.2024-04-10_12.43.12/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.55.40/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@856ac683c987.2024-04-10_12.43.12"
=== Started at 2024-04-10 12:55:45
*** User 2024-04-10 12:55:45.404 ***🔗
REST request:
Code: 201
Req: {<0.8469.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5aeb4d7741d0d9c">>}],
<<"{\"owner\":\"alicE_invite_errors_2927@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-45.392555\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-45.392555">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-45.392555">>,215,1892}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2927@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-45.392555\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.405 ***🔗
REST request fails:
Code: 400
Req: {<0.8479.2>,<<"/api/mucs/localhost/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"65c82f9912d26739">>}],
<<"{\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,467}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.406 ***🔗
REST request fails:
Code: 400
Req: {<0.8485.2>,<<"/api/mucs/localhost/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa95f25818a8d674">>}],
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,548}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.408 ***🔗
REST request fails:
Code: 400
Req: {<0.8492.2>,<<"/api/mucs/localhost/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9cfbd30af82a097">>}],
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,439}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.409 ***🔗
REST request fails:
Code: 400
Req: {<0.8496.2>,<<"/api/mucs/localhost/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e489e254ead2ff2a">>}],
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,664}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.410 ***🔗
REST request fails:
Code: 400
Req: {<0.8502.2>,<<"/api/mucs/localhost/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"342b49dc2e2ac3eb">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,408}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.411 ***🔗
REST request fails:
Code: 404
Req: {<0.8504.2>,<<"/api/mucs/baddomain/wonderland-45.392555/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1932d6ca2137913d">>}],
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,459}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-45.392555/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-10 12:55:45.413 ***🔗
REST request fails:
Code: 404
Req: {<0.8509.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41f51f87430f5599">>}],
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,491}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2927@localhost\",\"recipient\":\"bOb_invite_errors_2927@localhost\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-10 12:55:45
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}