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

=== Config value:

    [{watchdog,<0.73509.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@1df4d63c78a0.2024-04-26_13.10.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.25.46/muc_http_api_suite.room_creation_errors.204802.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@1df4d63c78a0.2024-04-26_13.10.29/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.25.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@1df4d63c78a0.2024-04-26_13.10.29"

=== Started at 2024-04-26 13:25:52


*** CT 2024-04-26 13:25:52.276 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4699.html

*** User 2024-04-26 13:25:52.290 ***🔗
REST request fails:
Code: 400
Req: {<0.73546.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8e51d69d239eb709">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3034@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,762}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3034@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:25:52.292 ***🔗
REST request fails:
Code: 400
Req: {<0.73550.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9b0e177482cd890">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_3034@localhost\",\"name\":\"wonderland-52.277025\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,783}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_3034@localhost\",\"name\":\"wonderland-52.277025\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:25:52.296 ***🔗
REST request fails:
Code: 400
Req: {<0.73556.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"69aba47d689167d8">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-52.277025\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,819}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-52.277025\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:25:52.298 ***🔗
REST request fails:
Code: 400
Req: {<0.73558.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64bcb711a21ea5f5">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3034@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,846}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_3034@localhost\",\"name\":\"@invalid\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:25:52.301 ***🔗
REST request fails:
Code: 400
Req: {<0.73560.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8e603f4ad2f2cd97">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-52.277025\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,1386}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-52.277025\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:25:52.303 ***🔗
REST request fails:
Code: 404
Req: {<0.73562.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8298a5d106932af7">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-52.277025\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:25:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,1008}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-52.277025\"}">>,
          method => <<"POST">>,return_headers => true}

*** CT 2024-04-26 13:25:52.308 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4699.html



=== Ended at 2024-04-26 13:25:52
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}