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

=== Config value:

    [{watchdog,<0.9811.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@fbe8e3fa1489.2024-04-22_16.58.57/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.12.30/muc_http_api_suite.room_creation_errors.212994.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@fbe8e3fa1489.2024-04-22_16.58.57/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.12.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@fbe8e3fa1489.2024-04-22_16.58.57"

=== Started at 2024-04-22 17:12:35


*** CT 2024-04-22 17:12:35.544 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5533.html

*** User 2024-04-22 17:12:35.554 ***🔗
REST request fails:
Code: 400
Req: {<0.9848.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e223fde8a4e18129">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,663}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"nick\":\"nick\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:12:35.556 ***🔗
REST request fails:
Code: 400
Req: {<0.9852.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"22542d410c6f1dfa">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"name\":\"wonderland-55.544907\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,516}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"name\":\"wonderland-55.544907\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:12:35.557 ***🔗
REST request fails:
Code: 400
Req: {<0.9856.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cf905012c24b75f8">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,526}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:12:35.559 ***🔗
REST request fails:
Code: 400
Req: {<0.9860.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05fec635c061603f">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,599}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2929@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:12:35.561 ***🔗
REST request fails:
Code: 400
Req: {<0.9864.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"28138a3e96c74c60">>}],
      <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,634}
Params: #{body =>
              <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:12:35.563 ***🔗
REST request fails:
Code: 404
Req: {<0.9871.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bca08be62d192a08">>}],
      <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:12:34 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,583}
Params: #{body =>
              <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-55.544907\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-22 17:12:35.567 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5533.html



=== Ended at 2024-04-22 17:12:35
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}