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

=== Config value:

    [{watchdog,<0.32255.1>},
     {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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.20.49/muc_http_api_suite.invite_errors.200578.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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.20.49/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@a557e8d70b1c.2023-11-17_15.09.37"

=== Started at 2023-11-17 15:20:54


*** CT 2023-11-17 15:20:54.917 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2513.html

*** User 2023-11-17 15:20:54.929 ***🔗
REST request:
Code: 201
Req: {<0.32302.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2769819704e8503">>}],
      <<"{\"owner\":\"alicE_invite_errors_2616@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.917999\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-54.917999">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-54.917999">>,224,2279}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_2616@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-54.917999\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.931 ***🔗
REST request fails:
Code: 400
Req: {<0.32313.1>,
      <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ad57e32f1156333">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,510}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.933 ***🔗
REST request fails:
Code: 400
Req: {<0.32319.1>,
      <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"42f9e88b93d93899">>}],
      <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,691}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.936 ***🔗
REST request fails:
Code: 400
Req: {<0.32327.1>,
      <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74f2caba39799436">>}],
      <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,754}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.937 ***🔗
REST request fails:
Code: 400
Req: {<0.32331.1>,
      <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"be4599115b6e170a">>}],
      <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,691}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.939 ***🔗
REST request fails:
Code: 400
Req: {<0.32336.1>,
      <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3a168b4388a69db6">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,591}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.942 ***🔗
REST request fails:
Code: 404
Req: {<0.32338.1>,<<"/api/mucs/baddomain/wonderland-54.917999/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df04b899c1b850a7">>}],
      <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,1122}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-54.917999/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:54.945 ***🔗
REST request fails:
Code: 404
Req: {<0.32343.1>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5138e488f4f2918f">>}],
      <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:54 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,1108}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2616@domain.example.com\",\"recipient\":\"bOb_invite_errors_2616@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 2023-11-17 15:20:54.948 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2513.html



=== Ended at 2023-11-17 15:20:54
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}