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

=== Config value:

    [{watchdog,<0.68618.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.04.18/muc_http_api_suite.room_creation_errors.207234.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_16.04.18/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@82e417e9e7f3.2024-04-15_15.52.32"

=== Started at 2024-04-15 16:04:23


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

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


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


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


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


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


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

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



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