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

=== Config value:

    [{watchdog,<0.42583.0>},
     {preset,"internal_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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/muc_http_api_suite.room_creation_errors.79234.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/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@8f270c211212.2024-04-22_14.32.33"

=== Started at 2024-04-22 14:45:09


*** CT 2024-04-22 14:45:09.937 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4257.html

*** User 2024-04-22 14:45:09.945 ***🔗
REST request fails:
Code: 400
Req: {<0.42620.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"264ba9a528b57601">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1475@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,801}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1475@localhost\"}">>,
          return_headers => true}


*** User 2024-04-22 14:45:09.947 ***🔗
REST request fails:
Code: 400
Req: {<0.42628.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"29274b1067e89d47">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1475@localhost\",\"name\":\"wonderland-9.937670\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 14:45:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,743}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1475@localhost\",\"name\":\"wonderland-9.937670\"}">>,
          return_headers => true}


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


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


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


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

*** CT 2024-04-22 14:45:09.959 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4257.html



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