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

=== Config value:

    [{watchdog,<0.73070.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@fe43254ce537.2024-03-13_08.50.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-13_09.06.22/muc_http_api_suite.room_creation_errors.212226.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@fe43254ce537.2024-03-13_08.50.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-13_09.06.22/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@fe43254ce537.2024-03-13_08.50.23"

=== Started at 2024-03-13 09:06:28


*** CT 2024-03-13 09:06:28.077 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4708.html

*** User 2024-03-13 09:06:28.089 ***🔗
REST request fails:
Code: 400
Req: {<0.73107.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bfe7359b8846dc83">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2963@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,862}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2963@localhost\"}">>,
          return_headers => true}


*** User 2024-03-13 09:06:28.091 ***🔗
REST request fails:
Code: 400
Req: {<0.73113.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9aa6a5fa0d46e1f5">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2963@localhost\",\"name\":\"wonderland-88.78367\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,760}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2963@localhost\",\"name\":\"wonderland-88.78367\"}">>,
          return_headers => true}


*** User 2024-03-13 09:06:28.093 ***🔗
REST request fails:
Code: 400
Req: {<0.73119.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c3e72b654a5295c1">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-88.78367\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,743}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-88.78367\"}">>,
          return_headers => true}


*** User 2024-03-13 09:06:28.095 ***🔗
REST request fails:
Code: 400
Req: {<0.73121.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"15e63d241c2a77a1">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2963@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,792}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2963@localhost\",\"name\":\"@invalid\"}">>,
          return_headers => true}


*** User 2024-03-13 09:06:28.097 ***🔗
REST request fails:
Code: 400
Req: {<0.73125.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"abba20a3f7b9e48c">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-88.78367\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,836}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-88.78367\"}">>,
          return_headers => true}


*** User 2024-03-13 09:06:28.099 ***🔗
REST request fails:
Code: 404
Req: {<0.73134.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6e8f06986e2acda3">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-88.78367\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 13 Mar 2024 09:06:27 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,689}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-88.78367\"}">>,
          return_headers => true}

*** CT 2024-03-13 09:06:28.102 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4708.html



=== Ended at 2024-03-13 09:06:28
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}