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

=== Config value:

    [{watchdog,<0.40210.0>},
     {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@6253ae15b82e.2024-04-25_12.01.28/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.12.20/muc_http_api_suite.invite_errors.20357.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@6253ae15b82e.2024-04-25_12.01.28/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.12.20/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@6253ae15b82e.2024-04-25_12.01.28"

=== Started at 2024-04-25 12:12:25


*** CT 2024-04-25 12:12:25.672 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4121.html

*** User 2024-04-25 12:12:25.684 ***🔗
REST request:
Code: 201
Req: {<0.40255.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"323d770b9057e033">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1400@localhost\",\"name\":\"wonderland-45.672320\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-45.672320">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-45.672320">>,215,1879}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1400@localhost\",\"name\":\"wonderland-45.672320\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.686 ***🔗
REST request fails:
Code: 400
Req: {<0.40263.0>,<<"/api/mucs/localhost/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"559e0bd2c3fbe42b">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,561}
Params: #{path => <<"/api/mucs/localhost/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.688 ***🔗
REST request fails:
Code: 400
Req: {<0.40272.0>,<<"/api/mucs/localhost/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d4abb40dfcacf3fb">>}],
      <<"{\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,642}
Params: #{path => <<"/api/mucs/localhost/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.690 ***🔗
REST request fails:
Code: 400
Req: {<0.40278.0>,<<"/api/mucs/localhost/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f6458a58821c23cd">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,575}
Params: #{path => <<"/api/mucs/localhost/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.692 ***🔗
REST request fails:
Code: 400
Req: {<0.40284.0>,<<"/api/mucs/localhost/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71bafc3f192c00a5">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,657}
Params: #{path => <<"/api/mucs/localhost/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.694 ***🔗
REST request fails:
Code: 400
Req: {<0.40288.0>,<<"/api/mucs/localhost/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e8ebf0823c5a2ef6">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,754}
Params: #{path => <<"/api/mucs/localhost/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.696 ***🔗
REST request fails:
Code: 404
Req: {<0.40296.0>,<<"/api/mucs/baddomain/wonderland-45.672320/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"568a655b42b7e88b">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,622}
Params: #{path => <<"/api/mucs/baddomain/wonderland-45.672320/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-04-25 12:12:25.698 ***🔗
REST request fails:
Code: 404
Req: {<0.40298.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a6033dcadb0f6f08">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:12:24 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,648}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1400@localhost\",\"sender\":\"alicE_invite_errors_1400@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-04-25 12:12:25.701 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4121.html



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