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

=== Config value:

    [{watchdog,<0.65124.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.17.41/muc_http_api_suite.invite_errors.111235.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.17.41/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@fe524ba9ae35.2024-03-11_09.05.30"

=== Started at 2024-03-11 09:17:47


*** CT 2024-03-11 09:17:47.218 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4195.html

*** User 2024-03-11 09:17:47.229 ***🔗
REST request:
Code: 201
Req: {<0.65167.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2450be9fa21eb15">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2461@localhost\",\"name\":\"wonderland-67.218918\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-67.218918">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-67.218918">>,215,2254}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2461@localhost\",\"name\":\"wonderland-67.218918\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.231 ***🔗
REST request fails:
Code: 400
Req: {<0.65177.0>,<<"/api/mucs/localhost/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6492f295041ea22">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,619}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.233 ***🔗
REST request fails:
Code: 400
Req: {<0.65185.0>,<<"/api/mucs/localhost/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a1270ccbf5d5d4d9">>}],
      <<"{\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,701}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.235 ***🔗
REST request fails:
Code: 400
Req: {<0.65192.0>,<<"/api/mucs/localhost/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d1891f35ef790b6">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,480}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.236 ***🔗
REST request fails:
Code: 400
Req: {<0.65198.0>,<<"/api/mucs/localhost/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9cf5a5edffabbb4b">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,537}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.238 ***🔗
REST request fails:
Code: 400
Req: {<0.65202.0>,<<"/api/mucs/localhost/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"22b031d6dd925527">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,587}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.240 ***🔗
REST request fails:
Code: 404
Req: {<0.65209.0>,<<"/api/mucs/baddomain/wonderland-67.218918/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b06bd10059bfde5">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,466}
Params: #{path => <<"/api/mucs/baddomain/wonderland-67.218918/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-11 09:17:47.241 ***🔗
REST request fails:
Code: 404
Req: {<0.65212.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2194600385eb4da5">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:17:46 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,527}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2461@localhost\",\"sender\":\"alicE_invite_errors_2461@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}

*** CT 2024-03-11 09:17:47.245 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4195.html



=== Ended at 2024-03-11 09:17:47
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}