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

=== Config value:

    [{watchdog,<0.40105.0>},
     {preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.47/muc_http_api_suite.room_creation_errors.31876.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.47/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@6ebac22519b0.2024-02-23_08.34.56"

=== Started at 2024-02-23 08:44:52


*** CT 2024-02-23 08:44:52.477 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4050.html

*** User 2024-02-23 08:44:52.485 ***🔗
REST request fails:
Code: 400
Req: {<0.40142.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"225def3be26be8b7">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1372@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,625}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1372@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.487 ***🔗
REST request fails:
Code: 400
Req: {<0.40150.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"600703a0f59d0a3f">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1372@localhost\",\"name\":\"wonderland-92.478112\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,499}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1372@localhost\",\"name\":\"wonderland-92.478112\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.488 ***🔗
REST request fails:
Code: 400
Req: {<0.40156.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ad880f4cb34b33ab">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-92.478112\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,591}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-92.478112\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.490 ***🔗
REST request fails:
Code: 400
Req: {<0.40164.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5874d0027d851b3a">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1372@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,528}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1372@localhost\",\"name\":\"@invalid\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.491 ***🔗
REST request fails:
Code: 400
Req: {<0.40171.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"07024bfec9f77719">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-92.478112\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,466}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-92.478112\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.492 ***🔗
REST request fails:
Code: 404
Req: {<0.40177.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0ad01dffce462cb2">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-92.478112\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,627}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-92.478112\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-02-23 08:44:52.495 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4050.html



=== Ended at 2024-02-23 08:44:52
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}