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

=== Config value:

    [{watchdog,<0.3765.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@893c79bb0538.2024-03-20_18.07.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-20_18.20.21/muc_http_api_suite.invite_errors.211202.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@893c79bb0538.2024-03-20_18.07.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-20_18.20.21/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@893c79bb0538.2024-03-20_18.07.18"

=== Started at 2024-03-20 18:20:26


*** CT 2024-03-20 18:20:26.604 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3460.html

*** User 2024-03-20 18:20:26.615 ***🔗
REST request:
Code: 201
Req: {<0.3812.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ff66e225921edc86">>}],
      <<"{\"owner\":\"alicE_invite_errors_2865@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-26.604881\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-26.604881">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-26.604881">>,224,2384}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_2865@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-26.604881\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.617 ***🔗
REST request fails:
Code: 400
Req: {<0.3824.2>,
      <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c16be6526c82062d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,743}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.618 ***🔗
REST request fails:
Code: 400
Req: {<0.3831.2>,
      <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"722144b419765c8d">>}],
      <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,630}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.620 ***🔗
REST request fails:
Code: 400
Req: {<0.3837.2>,
      <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a1060d08b84ee9a1">>}],
      <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,749}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.622 ***🔗
REST request fails:
Code: 400
Req: {<0.3839.2>,
      <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8032c4e5a52a4294">>}],
      <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,681}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.624 ***🔗
REST request fails:
Code: 400
Req: {<0.3843.2>,
      <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cef6659be918a922">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,655}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.625 ***🔗
REST request fails:
Code: 404
Req: {<0.3848.2>,<<"/api/mucs/baddomain/wonderland-26.604881/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3d42c0ed36f0207a">>}],
      <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,679}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-26.604881/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-20 18:20:26.627 ***🔗
REST request fails:
Code: 404
Req: {<0.3853.2>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"acc6718f6e60bc83">>}],
      <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:25 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,674}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2865@domain.example.com\",\"recipient\":\"bOb_invite_errors_2865@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-03-20 18:20:26.631 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3460.html



=== Ended at 2024-03-20 18:20:26
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}