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

=== Config value:

    [{watchdog,<0.74457.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_22.32.17/muc_http_api_suite.invite_errors.157571.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_22.32.17/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@17a96e781220.2024-03-21_22.20.25"

=== Started at 2024-03-21 22:32:22


*** CT 2024-03-21 22:32:22.528 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5421.html

*** User 2024-03-21 22:32:22.545 ***🔗
REST request:
Code: 201
Req: {<0.74504.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b32b22db261ae16">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2747@localhost\",\"name\":\"wonderland-42.528707\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-42.528707">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-42.528707">>,215,2178}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2747@localhost\",\"name\":\"wonderland-42.528707\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.546 ***🔗
REST request fails:
Code: 400
Req: {<0.74516.0>,<<"/api/mucs/localhost/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"daeebeb19abec710">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,418}
Params: #{path => <<"/api/mucs/localhost/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.547 ***🔗
REST request fails:
Code: 400
Req: {<0.74523.0>,<<"/api/mucs/localhost/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"207fd20500af71f2">>}],
      <<"{\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,507}
Params: #{path => <<"/api/mucs/localhost/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.549 ***🔗
REST request fails:
Code: 400
Req: {<0.74529.0>,<<"/api/mucs/localhost/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e3b48560ad8b704">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,417}
Params: #{path => <<"/api/mucs/localhost/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.550 ***🔗
REST request fails:
Code: 400
Req: {<0.74531.0>,<<"/api/mucs/localhost/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4cdd9dca3bf56f43">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,421}
Params: #{path => <<"/api/mucs/localhost/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.551 ***🔗
REST request fails:
Code: 400
Req: {<0.74533.0>,<<"/api/mucs/localhost/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1044815a24de2b49">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,676}
Params: #{path => <<"/api/mucs/localhost/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.553 ***🔗
REST request fails:
Code: 404
Req: {<0.74540.0>,<<"/api/mucs/baddomain/wonderland-42.528707/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"53b4685fd842a4d5">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,435}
Params: #{path => <<"/api/mucs/baddomain/wonderland-42.528707/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:32:22.554 ***🔗
REST request fails:
Code: 404
Req: {<0.74545.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10046be383162cde">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:32:22 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,466}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2747@localhost\",\"sender\":\"alicE_invite_errors_2747@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-03-21 22:32:22.557 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5421.html



=== Ended at 2024-03-21 22:32:22
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}