=== Test case: muc_http_api_SUITE:message_errors/1 (click for source code)

=== Config value:

    [{watchdog,<0.65124.0>},
     {preset,"pgsql_cets"},
     {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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.17.41/muc_http_api_suite.message_errors.173698.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.17.41/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@fe524ba9ae35.2024-03-11_09.05.30"

=== Started at 2024-03-11 09:17:47


*** CT 2024-03-11 09:17:47.219 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4195.html

*** User 2024-03-11 09:17:47.227 ***🔗
REST request:
Code: 201
Req: {<0.65163.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1b27517f5298679">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2462@localhost\",\"name\":\"wonderland-67.220106\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-67.220106">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-67.220106">>,215,2034}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_message_errors_2462@localhost\",\"name\":\"wonderland-67.220106\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.229 ***🔗
REST request:
Code: 204
Req: {<0.65173.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cc63c7d9a8033a70">>}],
      <<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2462@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>}],
         <<>>,80,713}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"body\":\"Greetings!\",\"from\":\"alicE_message_errors_2462@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.231 ***🔗
REST request fails:
Code: 400
Req: {<0.65179.0>,<<"/api/mucs/localhost/wonderland-67.220106/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c04cd15bab95ca46">>}],
      <<"{\"from\":\"alicE_message_errors_2462@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Missing message body\"">>,148,560}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.220106/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"from\":\"alicE_message_errors_2462@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.233 ***🔗
REST request fails:
Code: 400
Req: {<0.65188.0>,<<"/api/mucs/localhost/wonderland-67.220106/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f540f85337c7177e">>}],
      <<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,701}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.220106/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,body => <<"{\"body\":\"Greetings!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.235 ***🔗
REST request fails:
Code: 400
Req: {<0.65194.0>,<<"/api/mucs/localhost/wonderland-67.220106/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64a9b8503e694e01">>}],
      <<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,660}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.220106/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"body\":\"Greetings!\",\"from\":\"@invalid\"}">>,
          role => admin,return_headers => true}

*** CT 2024-03-11 09:17:47.237 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4195.html



=== Ended at 2024-03-11 09:17:47
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}