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

=== Config value:

    [{watchdog,<0.2389.2>},
     {preset,"pgsql_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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-07_11.12.08/muc_http_api_suite.invite_errors.99076.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-07_11.12.08/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a458c4eb991a.2024-03-07_11.00.02"

=== Started at 2024-03-07 11:12:13


*** CT 2024-03-07 11:12:13.716 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2439.html

*** User 2024-03-07 11:12:13.726 ***🔗
REST request:
Code: 201
Req: {<0.2432.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"48d0a0dc446f0be2">>}],
      <<"{\"owner\":\"alicE_invite_errors_2805@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-33.716767\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-33.716767">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-33.716767">>,224,1915}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_2805@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-33.716767\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.727 ***🔗
REST request fails:
Code: 400
Req: {<0.2442.2>,
      <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0a0661a8775cba15">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,509}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.729 ***🔗
REST request fails:
Code: 400
Req: {<0.2450.2>,
      <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f646bd3dd406250c">>}],
      <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,474}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.730 ***🔗
REST request fails:
Code: 400
Req: {<0.2455.2>,
      <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f63ceac4db228ccb">>}],
      <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,473}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.732 ***🔗
REST request fails:
Code: 400
Req: {<0.2461.2>,
      <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e703672e3a1e0193">>}],
      <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,646}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.733 ***🔗
REST request fails:
Code: 400
Req: {<0.2465.2>,
      <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"214a442813cb9762">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,468}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.735 ***🔗
REST request fails:
Code: 404
Req: {<0.2472.2>,<<"/api/mucs/baddomain/wonderland-33.716767/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a88ae9af61ca5c8">>}],
      <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,417}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-33.716767/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-07 11:12:13.736 ***🔗
REST request fails:
Code: 404
Req: {<0.2476.2>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"edcea30c92d78c4a">>}],
      <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Mar 2024 11:12:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,620}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2805@domain.example.com\",\"recipient\":\"bOb_invite_errors_2805@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2024-03-07 11:12:13.739 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2439.html



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