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

=== Config value:

    [{watchdog,<0.7429.1>},
     {preset,"ldap_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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.26.30/muc_http_api_suite.message_errors.27524.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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.26.30/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@85680c760e4e.2024-04-25_16.15.48"

=== Started at 2024-04-25 16:26:35


*** CT 2024-04-25 16:26:35.453 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4098.html

*** User 2024-04-25 16:26:35.463 ***🔗
REST request:
Code: 201
Req: {<0.7470.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c7c488b957d61663">>}],
      <<"{\"owner\":\"alicE_message_errors_1406@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-95.453288\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-95.453288">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-95.453288">>,215,2637}
Params: #{body =>
              <<"{\"owner\":\"alicE_message_errors_1406@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-95.453288\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.464 ***🔗
REST request:
Code: 204
Req: {<0.7480.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3019639881424fd2">>}],
      <<"{\"from\":\"alicE_message_errors_1406@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>}],
         <<>>,80,494}
Params: #{body =>
              <<"{\"from\":\"alicE_message_errors_1406@localhost\",\"body\":\"Greetings!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/thisroomdoesnotexist/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.466 ***🔗
REST request fails:
Code: 400
Req: {<0.7484.1>,<<"/api/mucs/localhost/wonderland-95.453288/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e776f1ebc4c5d08">>}],
      <<"{\"from\":\"alicE_message_errors_1406@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Missing message body\"">>,148,694}
Params: #{body => <<"{\"from\":\"alicE_message_errors_1406@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-95.453288/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.468 ***🔗
REST request fails:
Code: 400
Req: {<0.7492.1>,<<"/api/mucs/localhost/wonderland-95.453288/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71767d494d9e7856">>}],
      <<"{\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,650}
Params: #{body => <<"{\"body\":\"Greetings!\"}">>,method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-95.453288/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.469 ***🔗
REST request fails:
Code: 400
Req: {<0.7499.1>,<<"/api/mucs/localhost/wonderland-95.453288/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7a54ab6541b58c4">>}],
      <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,670}
Params: #{body => <<"{\"from\":\"@invalid\",\"body\":\"Greetings!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-95.453288/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-25 16:26:35.472 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4098.html



=== Ended at 2024-04-25 16:26:35
=== successfully completed test case
=== === Returned value: {{<<"400">>,<<"Bad Request">>},<<"Invalid sender JID">>}