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

=== Config value:

    [{watchdog,<0.3071.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@c6ffe72c83e5.2024-04-10_12.43.16/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.54.57/muc_http_api_suite.room_creation_errors.155779.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@c6ffe72c83e5.2024-04-10_12.43.16/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.54.57/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@c6ffe72c83e5.2024-04-10_12.43.16"

=== Started at 2024-04-10 12:55:03


*** CT 2024-04-10 12:55:03.012 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2458.html

*** User 2024-04-10 12:55:03.040 ***🔗
REST request fails:
Code: 400
Req: {<0.3108.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4730f10f1611b007">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2793@domain.example.com\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,600}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2793@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-10 12:55:03.041 ***🔗
REST request fails:
Code: 400
Req: {<0.3110.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7187aa51813e46bb">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2793@domain.example.com\",\"name\":\"wonderland-3.12824\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,439}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2793@domain.example.com\",\"name\":\"wonderland-3.12824\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.042 ***🔗
REST request fails:
Code: 400
Req: {<0.3112.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d8cfafc51e213dd1">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,497}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.044 ***🔗
REST request fails:
Code: 400
Req: {<0.3114.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"954cabb9b08406b5">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_2793@domain.example.com\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,491}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_2793@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-10 12:55:03.045 ***🔗
REST request fails:
Code: 400
Req: {<0.3116.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f7dc360fd61a705">>}],
      <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,413}
Params: #{body =>
              <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.046 ***🔗
REST request fails:
Code: 404
Req: {<0.3118.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9fbe537592a959df">>}],
      <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,459}
Params: #{body =>
              <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-3.12824\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-10 12:55:03.048 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2458.html



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