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

=== Config value:

    [{watchdog,<0.67891.0>},
     {preset,"mysql_redis"},
     {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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-12_13.36.38/muc_http_api_suite.room_creation_errors.194946.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-12_13.36.38/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@8a480c91a890.2024-04-12_13.25.32"

=== Started at 2024-04-12 13:36:44


*** CT 2024-04-12 13:36:44.240 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2184.html

*** User 2024-04-12 13:36:44.252 ***🔗
REST request fails:
Code: 400
Req: {<0.67928.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e914f7af7b6e42c">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,657}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-12 13:36:44.254 ***🔗
REST request fails:
Code: 400
Req: {<0.67934.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fee9871e8c75e74">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\",\"name\":\"wonderland-4.241261\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,855}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\",\"name\":\"wonderland-4.241261\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-12 13:36:44.256 ***🔗
REST request fails:
Code: 400
Req: {<0.67940.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c1f458192ea9cda">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-4.241261\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,682}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-4.241261\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-12 13:36:44.258 ***🔗
REST request fails:
Code: 400
Req: {<0.67942.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7827d2ed9777f9e0">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,685}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"alicE_room_creation_errors_2672@domain.example.com\",\"name\":\"@invalid\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-12 13:36:44.260 ***🔗
REST request fails:
Code: 400
Req: {<0.67951.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ad75e0f540cb19f5">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-4.241261\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,495}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"@invalid\",\"name\":\"wonderland-4.241261\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-12 13:36:44.262 ***🔗
REST request fails:
Code: 404
Req: {<0.67957.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18dc5f96fcc97e4e">>}],
      <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-4.241261\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 13:36:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,533}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"nick\",\"owner\":\"baduser@baddomain\",\"name\":\"wonderland-4.241261\"}">>,
          role => admin,return_headers => true}

*** CT 2024-04-12 13:36:44.264 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2184.html



=== Ended at 2024-04-12 13:36:44
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Given user not found">>}