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

=== Config value:

    [{watchdog,<0.67167.0>},
     {preset,"pgsql_cets"},
     {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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.51.40/muc_http_api_suite.invite_errors.56453.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_12.51.40/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@c63aed7f6ecc.2024-04-26_12.39.39"

=== Started at 2024-04-26 12:51:45


*** CT 2024-04-26 12:51:45.425 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4277.html

*** User 2024-04-26 12:51:45.435 ***🔗
REST request:
Code: 201
Req: {<0.67210.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99e4db91897ce09f">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2685@localhost\",\"name\":\"wonderland-5.426042\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-5.426042">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"wonderland-5.426042">>,213,1669}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2685@localhost\",\"name\":\"wonderland-5.426042\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.436 ***🔗
REST request fails:
Code: 400
Req: {<0.67220.0>,<<"/api/mucs/localhost/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f3a1eb60ec48d9eb">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,503}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.437 ***🔗
REST request fails:
Code: 400
Req: {<0.67228.0>,<<"/api/mucs/localhost/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"479c5c888eaa4f39">>}],
      <<"{\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,570}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.439 ***🔗
REST request fails:
Code: 400
Req: {<0.67233.0>,<<"/api/mucs/localhost/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a777897637b78393">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,484}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.441 ***🔗
REST request fails:
Code: 400
Req: {<0.67239.0>,<<"/api/mucs/localhost/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7056ed050cdf8227">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,539}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.442 ***🔗
REST request fails:
Code: 400
Req: {<0.67243.0>,<<"/api/mucs/localhost/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7cd66c965642593a">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,445}
Params: #{path => <<"/api/mucs/localhost/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.444 ***🔗
REST request fails:
Code: 404
Req: {<0.67247.0>,<<"/api/mucs/baddomain/wonderland-5.426042/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82463fb85b971d76">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,490}
Params: #{path => <<"/api/mucs/baddomain/wonderland-5.426042/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-26 12:51:45.445 ***🔗
REST request fails:
Code: 404
Req: {<0.67252.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c394ca0f6c4061e1">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:51:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,503}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2685@localhost\",\"sender\":\"alicE_invite_errors_2685@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-04-26 12:51:45.450 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4277.html



=== Ended at 2024-04-26 12:51:45
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}