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

=== Config value:

    [{watchdog,<0.67936.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.10/muc_http_api_suite.invite_errors.161154.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.10/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@e06ff82a20fb.2024-03-21_07.45.38"

=== Started at 2024-03-21 07:59:16


*** CT 2024-03-21 07:59:16.142 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5378.html

*** User 2024-03-21 07:59:16.152 ***🔗
REST request:
Code: 201
Req: {<0.67977.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b49635db1b6b03c5">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2797@localhost\",\"name\":\"wonderland-56.142611\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-56.142611">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-56.142611">>,215,1790}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2797@localhost\",\"name\":\"wonderland-56.142611\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.153 ***🔗
REST request fails:
Code: 400
Req: {<0.67989.0>,<<"/api/mucs/localhost/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0d8a3310340c4427">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,453}
Params: #{path => <<"/api/mucs/localhost/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.155 ***🔗
REST request fails:
Code: 400
Req: {<0.67991.0>,<<"/api/mucs/localhost/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ba4765aed05c4ec2">>}],
      <<"{\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,461}
Params: #{path => <<"/api/mucs/localhost/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.156 ***🔗
REST request fails:
Code: 400
Req: {<0.68002.0>,<<"/api/mucs/localhost/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"627882eb04ba4342">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,662}
Params: #{path => <<"/api/mucs/localhost/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.158 ***🔗
REST request fails:
Code: 400
Req: {<0.68008.0>,<<"/api/mucs/localhost/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"00d36ea0ef9b8152">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,586}
Params: #{path => <<"/api/mucs/localhost/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.159 ***🔗
REST request fails:
Code: 400
Req: {<0.68012.0>,<<"/api/mucs/localhost/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36f76d2848fe5a35">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,422}
Params: #{path => <<"/api/mucs/localhost/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.160 ***🔗
REST request fails:
Code: 404
Req: {<0.68018.0>,<<"/api/mucs/baddomain/wonderland-56.142611/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c7d75034d7a5be6">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,456}
Params: #{path => <<"/api/mucs/baddomain/wonderland-56.142611/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:16.162 ***🔗
REST request fails:
Code: 404
Req: {<0.68023.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5a1c38f452c8f7b5">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,468}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2797@localhost\",\"sender\":\"alicE_invite_errors_2797@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-03-21 07:59:16.165 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5378.html



=== Ended at 2024-03-21 07:59:16
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}