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

=== Config value:

    [{watchdog,<0.7429.1>},
     {preset,"ldap_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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.26.30/muc_http_api_suite.room_creation_errors.27140.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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_16.26.30/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@85680c760e4e.2024-04-25_16.15.48"

=== Started at 2024-04-25 16:26:35


*** CT 2024-04-25 16:26:35.447 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4098.html

*** User 2024-04-25 16:26:35.459 ***🔗
REST request fails:
Code: 400
Req: {<0.7466.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1621fec0972ad502">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"nick\":\"nick\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing room name\"">>,145,936}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"nick\":\"nick\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.462 ***🔗
REST request fails:
Code: 400
Req: {<0.7474.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5587d9d43d940988">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"name\":\"wonderland-95.448133\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Missing nickname\"">>,144,624}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"name\":\"wonderland-95.448133\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.464 ***🔗
REST request fails:
Code: 400
Req: {<0.7478.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b6b090c87ce63cdf">>}],
      <<"{\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Missing owner JID\"">>,145,639}
Params: #{body => <<"{\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.466 ***🔗
REST request fails:
Code: 400
Req: {<0.7486.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"497f2a5931192548">>}],
      <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid room name\"">>,145,763}
Params: #{body =>
              <<"{\"owner\":\"alicE_room_creation_errors_1403@localhost\",\"nick\":\"nick\",\"name\":\"@invalid\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.468 ***🔗
REST request fails:
Code: 400
Req: {<0.7494.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d44b28d31901d188">>}],
      <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"\"Invalid owner JID\"">>,145,631}
Params: #{body =>
              <<"{\"owner\":\"@invalid\",\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-25 16:26:35.470 ***🔗
REST request fails:
Code: 404
Req: {<0.7501.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a47df7fe95072244">>}],
      <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:26:35 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"Given user not found\"">>,146,604}
Params: #{body =>
              <<"{\"owner\":\"baduser@baddomain\",\"nick\":\"nick\",\"name\":\"wonderland-95.448133\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-04-25 16:26:35.473 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4098.html



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