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

=== Config value:

    [{watchdog,<0.59631.0>},
     {preset,"internal_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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.27.21/muc_http_api_suite.invite_errors.104579.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.27.21/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@6b87bb397ec6.2024-04-16_10.12.53"

=== Started at 2024-04-16 10:27:27


*** CT 2024-04-16 10:27:27.264 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4141.html

*** User 2024-04-16 10:27:27.275 ***🔗
REST request:
Code: 201
Req: {<0.59672.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f9caf8ec8598c51">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2112@localhost\",\"name\":\"wonderland-47.265341\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-47.265341">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-47.265341">>,215,1335}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2112@localhost\",\"name\":\"wonderland-47.265341\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.279 ***🔗
REST request fails:
Code: 400
Req: {<0.59682.0>,<<"/api/mucs/localhost/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"86211476b6a610d2">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,1206}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.281 ***🔗
REST request fails:
Code: 400
Req: {<0.59688.0>,<<"/api/mucs/localhost/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ec878ff4c8b50ef">>}],
      <<"{\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,641}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.285 ***🔗
REST request fails:
Code: 400
Req: {<0.59695.0>,<<"/api/mucs/localhost/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"95f199984bd467f7">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,625}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.287 ***🔗
REST request fails:
Code: 400
Req: {<0.59703.0>,<<"/api/mucs/localhost/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a254cde3f3e0f181">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,890}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.290 ***🔗
REST request fails:
Code: 400
Req: {<0.59709.0>,<<"/api/mucs/localhost/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e5bf731f2e5d1ec">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,688}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.293 ***🔗
REST request fails:
Code: 404
Req: {<0.59713.0>,<<"/api/mucs/baddomain/wonderland-47.265341/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6a1258d7f7b2b0a8">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,937}
Params: #{path => <<"/api/mucs/baddomain/wonderland-47.265341/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-16 10:27:27.295 ***🔗
REST request fails:
Code: 404
Req: {<0.59718.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a311d873fd2b264a">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,820}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2112@localhost\",\"sender\":\"alicE_invite_errors_2112@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-04-16 10:27:27.299 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4141.html



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