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

=== Config value:

    [{watchdog,<0.4947.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-04_15.52.58/muc_http_api_suite.message_errors.85636.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-04_15.52.58/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@cdcecdf9c9e0.2023-12-04_15.40.23"

=== Started at 2023-12-04 15:53:03


*** CT 2023-12-04 15:53:03.778 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4696.html

*** User 2023-12-04 15:53:03.786 ***🔗
REST request:
Code: 201
Req: {<0.4986.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed1b0cbc773f8326">>}],
      <<"{\"owner\":\"alicE_message_errors_2667@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.778452\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-83.778452">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-83.778452">>,215,2037}
Params: #{body =>
              <<"{\"owner\":\"alicE_message_errors_2667@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-83.778452\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:53:03.787 ***🔗
REST request:
Code: 204
Req: {<0.4998.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8583d235f38a0ee9">>}],
      <<"{\"from\":\"alicE_message_errors_2667@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>}],
         <<>>,80,739}
Params: #{body =>
              <<"{\"from\":\"alicE_message_errors_2667@localhost\",\"body\":\"Greetings!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:53:03.789 ***🔗
REST request fails:
Code: 400
Req: {<0.5004.2>,<<"/api/mucs/localhost/wonderland-83.778452/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"db0d7c20615f5edf">>}],
      <<"{\"from\":\"alicE_message_errors_2667@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Missing message body\"">>,148,676}
Params: #{body => <<"{\"from\":\"alicE_message_errors_2667@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-83.778452/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:53:03.790 ***🔗
REST request fails:
Code: 400
Req: {<0.5012.2>,<<"/api/mucs/localhost/wonderland-83.778452/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e5ce44b6711f4175">>}],
      <<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,490}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-83.778452/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:53:03.791 ***🔗
REST request fails:
Code: 400
Req: {<0.5019.2>,<<"/api/mucs/localhost/wonderland-83.778452/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8492251ae68091bc">>}],
      <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:53:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,500}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-83.778452/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2023-12-04 15:53:03.796 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4696.html



=== Ended at 2023-12-04 15:53:03
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}