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

=== Config value:

    [{watchdog,<0.6758.1>},
     {preset,"ldap_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@94ef96fe7e6f.2023-11-13_20.03.17/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_20.12.34/muc_http_api_suite.invite_errors.48643.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@94ef96fe7e6f.2023-11-13_20.03.17/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_20.12.34/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@94ef96fe7e6f.2023-11-13_20.03.17"

=== Started at 2023-11-13 20:12:39


*** CT 2023-11-13 20:12:39.475 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4221.html

*** User 2023-11-13 20:12:39.488 ***🔗
REST request:
Code: 201
Req: {<0.6803.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2242b8e1281805b">>}],
      <<"{\"owner\":\"alicE_invite_errors_1466@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-59.475522\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-59.475522">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-59.475522">>,215,2233}
Params: #{body =>
              <<"{\"owner\":\"alicE_invite_errors_1466@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-59.475522\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.490 ***🔗
REST request fails:
Code: 400
Req: {<0.6817.1>,<<"/api/mucs/localhost/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b0f3f1a7d27445cd">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,683}
Params: #{body =>
              <<"{\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.492 ***🔗
REST request fails:
Code: 400
Req: {<0.6824.1>,<<"/api/mucs/localhost/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"85610268672bade8">>}],
      <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,899}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.495 ***🔗
REST request fails:
Code: 400
Req: {<0.6830.1>,<<"/api/mucs/localhost/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9e36426b94269a4f">>}],
      <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,674}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.496 ***🔗
REST request fails:
Code: 400
Req: {<0.6835.1>,<<"/api/mucs/localhost/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce714c0b51b69242">>}],
      <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,518}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.498 ***🔗
REST request fails:
Code: 400
Req: {<0.6842.1>,<<"/api/mucs/localhost/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cd6e67d47b5d9973">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,756}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.499 ***🔗
REST request fails:
Code: 404
Req: {<0.6844.1>,<<"/api/mucs/baddomain/wonderland-59.475522/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a62ad05d204bf1e">>}],
      <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,732}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/baddomain/wonderland-59.475522/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-13 20:12:39.501 ***🔗
REST request fails:
Code: 404
Req: {<0.6849.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7195391d9608adeb">>}],
      <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 20:12:39 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,559}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_errors_1466@localhost\",\"recipient\":\"bOb_invite_errors_1466@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2023-11-13 20:12:39.503 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4221.html



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