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

=== Config value:

    [{watchdog,<0.75660.0>},
     {preset,"mysql_redis"},
     {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@ddae1a9683cd.2024-04-23_06.47.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_07.00.16/muc_http_api_suite.invite_errors.207234.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@ddae1a9683cd.2024-04-23_06.47.23/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_07.00.16/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@ddae1a9683cd.2024-04-23_06.47.23"

=== Started at 2024-04-23 07:00:22


*** CT 2024-04-23 07:00:22.273 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5540.html

*** User 2024-04-23 07:00:22.288 ***🔗
REST request:
Code: 201
Req: {<0.75705.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71174c3e8559de7d">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2825@localhost\",\"name\":\"wonderland-22.273665\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-22.273665">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-22.273665">>,215,2971}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2825@localhost\",\"name\":\"wonderland-22.273665\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.290 ***🔗
REST request fails:
Code: 400
Req: {<0.75715.0>,<<"/api/mucs/localhost/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"291f5e58485f24b4">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,517}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.291 ***🔗
REST request fails:
Code: 400
Req: {<0.75721.0>,<<"/api/mucs/localhost/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eff6c235a157ee39">>}],
      <<"{\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,523}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.293 ***🔗
REST request fails:
Code: 400
Req: {<0.75728.0>,<<"/api/mucs/localhost/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b412ba0483900583">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,617}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.295 ***🔗
REST request fails:
Code: 400
Req: {<0.75732.0>,<<"/api/mucs/localhost/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce946e5b4aa7f20f">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,665}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.297 ***🔗
REST request fails:
Code: 400
Req: {<0.75738.0>,<<"/api/mucs/localhost/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b5f94acfb9eee4a1">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,698}
Params: #{path => <<"/api/mucs/localhost/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.299 ***🔗
REST request fails:
Code: 404
Req: {<0.75741.0>,<<"/api/mucs/baddomain/wonderland-22.273665/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e883a9a9ff51be0">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,614}
Params: #{path => <<"/api/mucs/baddomain/wonderland-22.273665/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-23 07:00:22.301 ***🔗
REST request fails:
Code: 404
Req: {<0.75747.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d63eb4ecef580329">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:00:21 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,1105}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2825@localhost\",\"sender\":\"alicE_invite_errors_2825@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-04-23 07:00:22.304 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5540.html



=== Ended at 2024-04-23 07:00:22
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}