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

=== Config value:

    [{watchdog,<0.68682.0>},
     {preset,"pgsql_cets"},
     {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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_23.33.03/muc_http_api_suite.room_creation_errors.178434.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_23.33.03/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@81b4ed498ac1.2024-04-23_23.21.08"

=== Started at 2024-04-23 23:33:09


*** CT 2024-04-23 23:33:09.298 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5329.html

*** User 2024-04-23 23:33:09.309 ***🔗
REST request fails:
Code: 400
Req: {<0.68719.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80dd1eac0c2891bb">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2593@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,795}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2593@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-23 23:33:09.311 ***🔗
REST request fails:
Code: 400
Req: {<0.68727.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"86168105b3ebb2be">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2593@localhost\",\"name\":\"wonderland-89.299500\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,602}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2593@localhost\",\"name\":\"wonderland-89.299500\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-23 23:33:09.313 ***🔗
REST request fails:
Code: 400
Req: {<0.68731.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2948d7d2b14a6318">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-89.299500\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,652}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-89.299500\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-23 23:33:09.314 ***🔗
REST request fails:
Code: 400
Req: {<0.68737.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"61ed0ff3c08b99b5">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2593@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:33:09 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,539}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2593@localhost\",\"name\":\"@invalid\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


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


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

*** CT 2024-04-23 23:33:09.324 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5329.html



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