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

=== Config value:

    [{watchdog,<0.39911.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@306ffcb8cebe.2024-03-06_12.05.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-06_12.15.17/muc_http_api_suite.room_creation_errors.45827.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@306ffcb8cebe.2024-03-06_12.05.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-06_12.15.17/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@306ffcb8cebe.2024-03-06_12.05.32"

=== Started at 2024-03-06 12:15:22


*** CT 2024-03-06 12:15:22.930 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4052.html

*** User 2024-03-06 12:15:22.940 ***🔗
REST request fails:
Code: 400
Req: {<0.39948.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9a71861565bcacac">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1341@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,935}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1341@localhost\"}">>,
          return_headers => true}


*** User 2024-03-06 12:15:22.942 ***🔗
REST request fails:
Code: 400
Req: {<0.39954.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aec1dc7bd3cab42a">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1341@localhost\",\"name\":\"wonderland-22.930332\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,721}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1341@localhost\",\"name\":\"wonderland-22.930332\"}">>,
          return_headers => true}


*** User 2024-03-06 12:15:22.944 ***🔗
REST request fails:
Code: 400
Req: {<0.39962.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b0dc362ab38d5745">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-22.930332\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,671}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-22.930332\"}">>,
          return_headers => true}


*** User 2024-03-06 12:15:22.947 ***🔗
REST request fails:
Code: 400
Req: {<0.39964.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6e108a80172993e">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1341@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,804}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_1341@localhost\",\"name\":\"@invalid\"}">>,
          return_headers => true}


*** User 2024-03-06 12:15:22.949 ***🔗
REST request fails:
Code: 400
Req: {<0.39973.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9a47b24352fd1c7">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-22.930332\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,840}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-22.930332\"}">>,
          return_headers => true}


*** User 2024-03-06 12:15:22.951 ***🔗
REST request fails:
Code: 404
Req: {<0.39983.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"52e7d0ece6d9b428">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-22.930332\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 06 Mar 2024 12:15:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,792}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-22.930332\"}">>,
          return_headers => true}

*** CT 2024-03-06 12:15:22.954 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4052.html



=== Ended at 2024-03-06 12:15:22
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}