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

=== Config value:

    [{watchdog,<0.64402.0>},
     {preset,"mysql_redis"},
     {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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-07_07.56.44/muc_http_api_suite.invite_errors.53253.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.muc_http_api_SUITE.logs/run.2023-12-07_07.56.44/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@d3b7dd7159a8.2023-12-07_07.46.41"

=== Started at 2023-12-07 07:56:49


*** CT 2023-12-07 07:56:49.991 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2232.html

*** User 2023-12-07 07:56:50.004 ***🔗
REST request:
Code: 201
Req: {<0.64445.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"314a3040fa2895cc">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2454@domain.example.com\",\"name\":\"wonderland-9.991876\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-9.991876">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"wonderland-9.991876">>,222,2966}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2454@domain.example.com\",\"name\":\"wonderland-9.991876\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.006 ***🔗
REST request fails:
Code: 400
Req: {<0.64456.0>,
      <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"beae555b561f4021">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,616}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.008 ***🔗
REST request fails:
Code: 400
Req: {<0.64463.0>,
      <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"85127c602bdb9cce">>}],
      <<"{\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,629}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.009 ***🔗
REST request fails:
Code: 400
Req: {<0.64470.0>,
      <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4bfa54a7438b00ce">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,482}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.011 ***🔗
REST request fails:
Code: 400
Req: {<0.64474.0>,
      <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f225e8683897c1b2">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,480}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.013 ***🔗
REST request fails:
Code: 400
Req: {<0.64480.0>,
      <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f054f784130d1099">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,571}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.014 ***🔗
REST request fails:
Code: 404
Req: {<0.64483.0>,<<"/api/mucs/baddomain/wonderland-9.991876/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9b08bfbd5a449d3">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,541}
Params: #{path => <<"/api/mucs/baddomain/wonderland-9.991876/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2023-12-07 07:56:50.016 ***🔗
REST request fails:
Code: 404
Req: {<0.64489.0>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"253e281f0a92d5f8">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:56:49 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,742}
Params: #{path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2454@domain.example.com\",\"sender\":\"alicE_invite_errors_2454@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2023-12-07 07:56:50.020 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2232.html



=== Ended at 2023-12-07 07:56:50
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}