=== Test case: muc_http_api_SUITE:message_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.message_errors.68485.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.593 ***🔗
REST request:
Code: 201
Req: {<0.2941.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa2975dbe8f32ea6">>}],
<<"{\"owner\":\"alicE_message_errors_2830@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.586692\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-54.586692">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-54.586692">>,224,1796}
Params: #{body =>
<<"{\"owner\":\"alicE_message_errors_2830@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.586692\"}">>,
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:
Code: 204
Req: {<0.2951.2>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fbe2c48be834e8ad">>}],
<<"{\"from\":\"alicE_message_errors_2830@domain.example.com\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>}],
<<>>,80,852}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_2830@domain.example.com\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.596 ***🔗
REST request fails:
Code: 400
Req: {<0.2959.2>,
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"03f90f4f4909e21e">>}],
<<"{\"from\":\"alicE_message_errors_2830@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:20:54 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"22">>}],
<<"\"Missing message body\"">>,148,427}
Params: #{body =>
<<"{\"from\":\"alicE_message_errors_2830@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.598 ***🔗
REST request fails:
Code: 400
Req: {<0.2966.2>,
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc35e6a97a7d0f2b">>}],
<<"{\"body\":\"Greetings!\"}">>}
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,469}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:20:54.599 ***🔗
REST request fails:
Code: 400
Req: {<0.2972.2>,
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3895c197aecd423e">>}],
<<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
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,489}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-54.586692/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2024-04-26 13:20:54
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}