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

=== Config value:

    [{watchdog,<0.40105.0>},
     {preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.47/muc_http_api_suite.invite_errors.32004.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-23_08.44.47/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@6ebac22519b0.2024-02-23_08.34.56"

=== Started at 2024-02-23 08:44:52


*** CT 2024-02-23 08:44:52.478 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4050.html

*** User 2024-02-23 08:44:52.487 ***🔗
REST request:
Code: 201
Req: {<0.40148.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"76c93e65f87f633c">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1373@localhost\",\"name\":\"wonderland-92.479063\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-92.479063">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-92.479063">>,215,1316}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1373@localhost\",\"name\":\"wonderland-92.479063\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.489 ***🔗
REST request fails:
Code: 400
Req: {<0.40158.0>,<<"/api/mucs/localhost/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5af225917218ac83">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,447}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.490 ***🔗
REST request fails:
Code: 400
Req: {<0.40167.0>,<<"/api/mucs/localhost/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3eb7acbf40478fcf">>}],
      <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,437}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.492 ***🔗
REST request fails:
Code: 400
Req: {<0.40173.0>,<<"/api/mucs/localhost/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08d9511eb06cd10d">>}],
      <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,470}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.494 ***🔗
REST request fails:
Code: 400
Req: {<0.40179.0>,<<"/api/mucs/localhost/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cd8e712cdfd552d5">>}],
      <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,580}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.495 ***🔗
REST request fails:
Code: 400
Req: {<0.40183.0>,<<"/api/mucs/localhost/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1c71670e81ccad4">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,438}
Params: #{path => <<"/api/mucs/localhost/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.496 ***🔗
REST request fails:
Code: 404
Req: {<0.40190.0>,<<"/api/mucs/baddomain/wonderland-92.479063/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08cc1ebc0ad66d3e">>}],
      <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,514}
Params: #{path => <<"/api/mucs/baddomain/wonderland-92.479063/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-23 08:44:52.498 ***🔗
REST request fails:
Code: 404
Req: {<0.40195.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0fafa684ae7a363b">>}],
      <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 08:44:52 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,495}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1373@localhost\",\"recipient\":\"bOb_invite_errors_1373@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-02-23 08:44:52.499 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4050.html



=== Ended at 2024-02-23 08:44:52
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}