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

=== Config value:

    [{watchdog,<0.9631.2>},
     {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@8ee8aee1817b.2024-04-22_17.27.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.41.05/muc_http_api_suite.room_creation_errors.240898.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@8ee8aee1817b.2024-04-22_17.27.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_17.41.05/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@8ee8aee1817b.2024-04-22_17.27.48"

=== Started at 2024-04-22 17:41:10


*** CT 2024-04-22 17:41:10.414 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5505.html

*** User 2024-04-22 17:41:10.425 ***🔗
REST request fails:
Code: 400
Req: {<0.9668.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"745d8756fe20d1eb">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2952@localhost\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,633}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2952@localhost\",\"nick\":\"nick\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:41:10.427 ***🔗
REST request fails:
Code: 400
Req: {<0.9672.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"270cc4d7b4ee4040">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2952@localhost\",\"name\":\"wonderland-70.415420\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,539}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2952@localhost\",\"name\":\"wonderland-70.415420\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-22 17:41:10.428 ***🔗
REST request fails:
Code: 400
Req: {<0.9680.2>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54565a0af0ebea74">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-70.415420\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:41:10 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,625}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-70.415420\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


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


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

*** CT 2024-04-22 17:41:10.437 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5505.html



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