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

=== Config value:

    [{watchdog,<0.73647.0>},
     {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@327be9dfa6e9.2024-03-12_09.45.11/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-12_09.58.35/muc_http_api_suite.room_creation_errors.144515.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@327be9dfa6e9.2024-03-12_09.45.11/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-12_09.58.35/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@327be9dfa6e9.2024-03-12_09.45.11"

=== Started at 2024-03-12 09:58:41


*** CT 2024-03-12 09:58:41.222 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4611.html

*** User 2024-03-12 09:58:41.229 ***🔗
REST request fails:
Code: 400
Req: {<0.73686.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6add29d230403635">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2915@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 09:58:40 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,488}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2915@localhost\"}">>,
          return_headers => true}


*** User 2024-03-12 09:58:41.231 ***🔗
REST request fails:
Code: 400
Req: {<0.73690.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2c6f40efe5e4e9bf">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2915@localhost\",\"name\":\"wonderland-21.223174\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 09:58:40 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,578}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2915@localhost\",\"name\":\"wonderland-21.223174\"}">>,
          return_headers => true}


*** User 2024-03-12 09:58:41.233 ***🔗
REST request fails:
Code: 400
Req: {<0.73696.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"30b45406759572aa">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-21.223174\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 09:58:40 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,555}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-21.223174\"}">>,
          return_headers => true}


*** User 2024-03-12 09:58:41.234 ***🔗
REST request fails:
Code: 400
Req: {<0.73702.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"747240c62cc9af21">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2915@localhost\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 09:58:40 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,708}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2915@localhost\",\"name\":\"@invalid\"}">>,
          return_headers => true}


*** User 2024-03-12 09:58:41.236 ***🔗
REST request fails:
Code: 400
Req: {<0.73710.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8376ca20979019d1">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-21.223174\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 12 Mar 2024 09:58:40 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,631}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-21.223174\"}">>,
          return_headers => true}


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

*** CT 2024-03-12 09:58:41.240 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4611.html



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