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

=== Config value:

    [{watchdog,<0.73465.0>},
     {preset,"odbc_mssql_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@bb72c4c52985.2024-04-16_11.59.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_12.14.16/muc_http_api_suite.room_creation_errors.220162.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@bb72c4c52985.2024-04-16_11.59.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_12.14.16/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@bb72c4c52985.2024-04-16_11.59.18"

=== Started at 2024-04-16 12:14:22


*** CT 2024-04-16 12:14:22.713 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4648.html

*** User 2024-04-16 12:14:22.723 ***🔗
REST request fails:
Code: 400
Req: {<0.73504.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74a025ed90fc3cac">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2899@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,598}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2899@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 12:14:22.724 ***🔗
REST request fails:
Code: 400
Req: {<0.73508.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"520f4fddd693d0df">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2899@localhost\",\"name\":\"wonderland-62.713392\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,573}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2899@localhost\",\"name\":\"wonderland-62.713392\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 12:14:22.726 ***🔗
REST request fails:
Code: 400
Req: {<0.73514.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e693e05c856b10ba">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-62.713392\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,578}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-62.713392\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 12:14:22.727 ***🔗
REST request fails:
Code: 400
Req: {<0.73518.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"435fa4c75c2460c3">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2899@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,609}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2899@localhost\",\"name\":\"@invalid\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 12:14:22.729 ***🔗
REST request fails:
Code: 400
Req: {<0.73528.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"39f1f228d06cdedd">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-62.713392\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,483}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-62.713392\"}">>,
          role => admin,return_headers => true}


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

*** CT 2024-04-16 12:14:22.734 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4648.html



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