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

=== Config value:

    [{watchdog,<0.73593.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/muc_http_api_suite.room_creation_errors.221698.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/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@96ddc50d3205.2024-04-23_10.53.40"

=== Started at 2024-04-23 11:09:55


*** CT 2024-04-23 11:09:55.358 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4724.html

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


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


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


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


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


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

*** CT 2024-04-23 11:09:55.388 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4724.html



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