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

=== Config value:

    [{watchdog,<0.2992.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@b3c75cb3c9a2.2024-04-23_10.51.31/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.03.36/muc_http_api_suite.invite_errors.219266.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@b3c75cb3c9a2.2024-04-23_10.51.31/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.03.36/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@b3c75cb3c9a2.2024-04-23_10.51.31"

=== Started at 2024-04-23 11:03:42


*** CT 2024-04-23 11:03:42.333 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2450.html

*** User 2024-04-23 11:03:42.345 ***🔗
REST request:
Code: 201
Req: {<0.3041.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e491dfcb0ea5ca42">>}],
      <<"{\"owner\":\"alicE_invite_errors_3038@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-22.334660\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-22.334660">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-22.334660">>,224,1973}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_3038@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-22.334660\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.348 ***🔗
REST request fails:
Code: 400
Req: {<0.3049.2>,
      <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13c85c78542da77d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,985}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.350 ***🔗
REST request fails:
Code: 400
Req: {<0.3056.2>,
      <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"207c3bbdb2261499">>}],
      <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,807}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.353 ***🔗
REST request fails:
Code: 400
Req: {<0.3064.2>,
      <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"172f57174515bdf7">>}],
      <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,798}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.356 ***🔗
REST request fails:
Code: 400
Req: {<0.3067.2>,
      <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"98db2848df66f496">>}],
      <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,675}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.358 ***🔗
REST request fails:
Code: 400
Req: {<0.3073.2>,
      <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f60775c51fd7071">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,627}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.360 ***🔗
REST request fails:
Code: 404
Req: {<0.3077.2>,<<"/api/mucs/baddomain/wonderland-22.334660/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7250747714d35f4d">>}],
      <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,492}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-22.334660/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-23 11:03:42.362 ***🔗
REST request fails:
Code: 404
Req: {<0.3080.2>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0223d4e35d1bce7">>}],
      <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:03:41 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,732}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_3038@domain.example.com\",\"recipient\":\"bOb_invite_errors_3038@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-04-23 11:03:42.367 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2450.html



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