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

=== Config value:

    [{watchdog,<0.3023.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@796d2ee6b4d7.2024-04-15_16.44.54/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.56.33/muc_http_api_suite.room_creation_errors.210562.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@796d2ee6b4d7.2024-04-15_16.44.54/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.56.33/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@796d2ee6b4d7.2024-04-15_16.44.54"

=== Started at 2024-04-15 16:56:38


*** CT 2024-04-15 16:56:38.914 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2452.html

*** User 2024-04-15 16:56:38.921 ***🔗
REST request fails:
Code: 400
Req: {<0.3062.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96509f218d9b3e5f">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,607}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"nick\":\"nick\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-15 16:56:38.923 ***🔗
REST request fails:
Code: 400
Req: {<0.3070.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6fd6e214b416d027">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"name\":\"wonderland-98.915071\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,614}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"name\":\"wonderland-98.915071\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-15 16:56:38.925 ***🔗
REST request fails:
Code: 400
Req: {<0.3072.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2d0df4f55b9afdbb">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,502}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-15 16:56:38.926 ***🔗
REST request fails:
Code: 400
Req: {<0.3078.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f5cc88065a8b16b">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,614}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2809@domain.example.com\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-15 16:56:38.928 ***🔗
REST request fails:
Code: 400
Req: {<0.3086.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2735214aaf5ed0d1">>}],
      <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,694}
Params: #{body =>
              <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-15 16:56:38.929 ***🔗
REST request fails:
Code: 404
Req: {<0.3093.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"456f4ecb3eed94d3">>}],
      <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:56:38 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,582}
Params: #{body =>
              <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-98.915071\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-15 16:56:38.932 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2452.html



=== Ended at 2024-04-15 16:56:38
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}