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

=== Config value:

    [{watchdog,<0.74086.0>},
     {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@abbfb30c6dcc.2024-04-15_16.45.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_17.00.46/muc_http_api_suite.room_creation_errors.204546.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@abbfb30c6dcc.2024-04-15_16.45.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_17.00.46/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@abbfb30c6dcc.2024-04-15_16.45.58"

=== Started at 2024-04-15 17:00:51


*** CT 2024-04-15 17:00:51.618 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4737.html

*** User 2024-04-15 17:00:51.628 ***🔗
REST request fails:
Code: 400
Req: {<0.74123.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8446c1208cdf7a3b">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3078@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,782}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3078@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.630 ***🔗
REST request fails:
Code: 400
Req: {<0.74131.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8c464c6230d16222">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_3078@localhost\",\"name\":\"wonderland-51.618867\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,658}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_3078@localhost\",\"name\":\"wonderland-51.618867\"}">>,
          role => admin,return_headers => true}


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


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


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


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

*** CT 2024-04-15 17:00:51.639 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4737.html



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