=== Test case: muc_http_api_SUITE:invite_errors/1 (click for source code)
=== Config value:
[{watchdog,<0.2900.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@581ddf48c306.2024-04-26_13.09.13/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.20.48/muc_http_api_suite.invite_errors.217090.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@581ddf48c306.2024-04-26_13.09.13/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.20.48/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@581ddf48c306.2024-04-26_13.09.13"
=== Started at 2024-04-26 13:20:54
*** User 2024-04-26 13:20:54.594 ***🔗
REST request:
Code: 201
Req: {<0.2945.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56453afce1058a74">>}],
<<"{\"owner\":\"alicE_invite_errors_2828@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.583868\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-54.583868">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-54.583868">>,224,1903}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_errors_2828@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.583868\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.595 ***🔗
REST request fails:
Code: 400
Req: {<0.2955.2>,
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4733ee4adda11620">>}],
<<"{\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Missing sender JID\"">>,146,675}
Params: #{body =>
<<"{\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.597 ***🔗
REST request fails:
Code: 400
Req: {<0.2964.2>,
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"70b252f529157491">>}],
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing recipient JID\"">>,149,563}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.598 ***🔗
REST request fails:
Code: 400
Req: {<0.2970.2>,
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a8ac3741d3fa310">>}],
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Missing invite reason\"">>,149,738}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.600 ***🔗
REST request fails:
Code: 400
Req: {<0.2974.2>,
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07dbb5da240528c0">>}],
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"23">>}],
<<"\"Invalid recipient JID\"">>,149,468}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.601 ***🔗
REST request fails:
Code: 400
Req: {<0.2979.2>,
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"261471542c739cb4">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"\"Invalid sender JID\"">>,146,503}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.602 ***🔗
REST request fails:
Code: 404
Req: {<0.2983.2>,<<"/api/mucs/baddomain/wonderland-54.583868/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c74bc0c36e711843">>}],
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"MUC domain not found\"">>,146,412}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/baddomain/wonderland-54.583868/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.604 ***🔗
REST request fails:
Code: 404
Req: {<0.2987.2>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"142e33f7df2452ec">>}],
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,645}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_errors_2828@domain.example.com\",\"recipient\":\"bOb_invite_errors_2828@domain.example.com\",\"reason\":\"Join this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-26 13:20:54
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}