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

=== Config value:

    [{watchdog,<0.68447.0>},
     {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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_11.12.10/muc_http_api_suite.invite_errors.53893.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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_11.12.10/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@2fae5249a3b3.2024-04-16_10.56.49"

=== Started at 2024-04-16 11:12:15


*** CT 2024-04-16 11:12:16.006 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2455.html

*** User 2024-04-16 11:12:16.019 ***🔗
REST request:
Code: 201
Req: {<0.68492.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"533c7ba8ea1e94c6">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3232@domain.example.com\",\"name\":\"wonderland-36.6985\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-36.6985">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"wonderland-36.6985">>,220,2172}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3232@domain.example.com\",\"name\":\"wonderland-36.6985\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.021 ***🔗
REST request fails:
Code: 400
Req: {<0.68502.0>,
      <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a476bf1b881dddc1">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,917}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.023 ***🔗
REST request fails:
Code: 400
Req: {<0.68510.0>,
      <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62629ad58ded3629">>}],
      <<"{\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,798}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.025 ***🔗
REST request fails:
Code: 400
Req: {<0.68517.0>,
      <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5708e9a0108aeeca">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,496}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.026 ***🔗
REST request fails:
Code: 400
Req: {<0.68521.0>,
      <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0effdf03c65175ae">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,614}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.028 ***🔗
REST request fails:
Code: 400
Req: {<0.68525.0>,
      <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cf4ef91aa05072c6">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,515}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.030 ***🔗
REST request fails:
Code: 404
Req: {<0.68528.0>,<<"/api/mucs/baddomain/wonderland-36.6985/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e590489e4d656a8">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,715}
Params: #{path => <<"/api/mucs/baddomain/wonderland-36.6985/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:16.031 ***🔗
REST request fails:
Code: 404
Req: {<0.68534.0>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a142d7f4a1e1fda">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,614}
Params: #{path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3232@domain.example.com\",\"sender\":\"alicE_invite_errors_3232@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-04-16 11:12:16.034 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2455.html



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