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

=== Config value:

    [{watchdog,<0.67165.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@fe953d6ed70e.2024-04-11_13.48.27/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-11_14.00.18/muc_http_api_suite.invite_errors.138627.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@fe953d6ed70e.2024-04-11_13.48.27/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-11_14.00.18/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@fe953d6ed70e.2024-04-11_13.48.27"

=== Started at 2024-04-11 14:00:23


*** CT 2024-04-11 14:00:23.957 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4304.html

*** User 2024-04-11 14:00:23.968 ***🔗
REST request:
Code: 201
Req: {<0.67206.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"53be7ee8c8d6f506">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2572@localhost\",\"name\":\"wonderland-23.958331\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-23.958331">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-23.958331">>,215,1746}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2572@localhost\",\"name\":\"wonderland-23.958331\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.969 ***🔗
REST request fails:
Code: 400
Req: {<0.67216.0>,<<"/api/mucs/localhost/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"38a783ae5cb68e59">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,518}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.971 ***🔗
REST request fails:
Code: 400
Req: {<0.67222.0>,<<"/api/mucs/localhost/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8be9a3ab215044de">>}],
      <<"{\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,670}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.973 ***🔗
REST request fails:
Code: 400
Req: {<0.67231.0>,<<"/api/mucs/localhost/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0c1f7b01e080c8be">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,728}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.974 ***🔗
REST request fails:
Code: 400
Req: {<0.67238.0>,<<"/api/mucs/localhost/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1ecbe6c6b55727ee">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,476}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.976 ***🔗
REST request fails:
Code: 400
Req: {<0.67241.0>,<<"/api/mucs/localhost/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65f18df59186e42a">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,506}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.978 ***🔗
REST request fails:
Code: 404
Req: {<0.67245.0>,<<"/api/mucs/baddomain/wonderland-23.958331/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"991fac7cc56010c3">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,504}
Params: #{path => <<"/api/mucs/baddomain/wonderland-23.958331/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-11 14:00:23.979 ***🔗
REST request fails:
Code: 404
Req: {<0.67250.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"513bebcf47d0558d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 11 Apr 2024 14:00:23 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,476}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2572@localhost\",\"sender\":\"alicE_invite_errors_2572@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-04-11 14:00:23.984 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4304.html



=== Ended at 2024-04-11 14:00:24
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}