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

=== Config value:

    [{watchdog,<0.3071.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@c6ffe72c83e5.2024-04-10_12.43.16/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.54.57/muc_http_api_suite.invite_errors.156035.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@c6ffe72c83e5.2024-04-10_12.43.16/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.54.57/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@c6ffe72c83e5.2024-04-10_12.43.16"

=== Started at 2024-04-10 12:55:03


*** CT 2024-04-10 12:55:03.009 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2458.html

*** User 2024-04-10 12:55:03.052 ***🔗
REST request:
Code: 201
Req: {<0.3122.2>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d13d5dfe9e5d31ff">>}],
      <<"{\"owner\":\"alicE_invite_errors_2792@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-3.9723\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-3.9723">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"17">>}],
         <<"wonderland-3.9723">>,218,6264}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_2792@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-3.9723\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.054 ***🔗
REST request fails:
Code: 400
Req: {<0.3134.2>,
      <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a6fed41212f79c74">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,484}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.055 ***🔗
REST request fails:
Code: 400
Req: {<0.3136.2>,
      <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"187164937c17e0bb">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,649}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.056 ***🔗
REST request fails:
Code: 400
Req: {<0.3140.2>,
      <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"87c4eb67ce4314fa">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,618}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.058 ***🔗
REST request fails:
Code: 400
Req: {<0.3146.2>,
      <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94e9b12dd2722208">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,383}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.059 ***🔗
REST request fails:
Code: 400
Req: {<0.3150.2>,
      <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71c9acf7975e3416">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,572}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.060 ***🔗
REST request fails:
Code: 404
Req: {<0.3157.2>,<<"/api/mucs/baddomain/wonderland-3.9723/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ca77e757921478c">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,486}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-3.9723/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:55:03.062 ***🔗
REST request fails:
Code: 404
Req: {<0.3159.2>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1055d3a235c3257">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:55:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,525}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"recipient\":\"bOb_invite_errors_2792@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-10 12:55:03.065 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2458.html



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