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

=== Config value:

    [{watchdog,<0.91353.0>},
     {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@9e4a8689b615.2024-04-16_10.12.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.26.55/muc_http_api_suite.invite_errors.148484.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@9e4a8689b615.2024-04-16_10.12.19/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-16_10.26.55/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@9e4a8689b615.2024-04-16_10.12.19"

=== Started at 2024-04-16 10:27:00


*** CT 2024-04-16 10:27:00.412 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4621.html

*** User 2024-04-16 10:27:00.426 ***🔗
REST request:
Code: 201
Req: {<0.91398.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d0d69cf23a4a54cf">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3599@localhost\",\"name\":\"wonderland-20.413081\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-20.413081">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-20.413081">>,215,2119}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3599@localhost\",\"name\":\"wonderland-20.413081\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.428 ***🔗
REST request fails:
Code: 400
Req: {<0.91408.0>,<<"/api/mucs/localhost/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"72f5940544862bf0">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,745}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.430 ***🔗
REST request fails:
Code: 400
Req: {<0.91414.0>,<<"/api/mucs/localhost/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fd200422e4a3f47">>}],
      <<"{\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,807}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.432 ***🔗
REST request fails:
Code: 400
Req: {<0.91423.0>,<<"/api/mucs/localhost/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2807ae3f9d045503">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,582}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.434 ***🔗
REST request fails:
Code: 400
Req: {<0.91427.0>,<<"/api/mucs/localhost/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6441d2d0e7312f7d">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,720}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.437 ***🔗
REST request fails:
Code: 400
Req: {<0.91431.0>,<<"/api/mucs/localhost/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93ffa355c65e586e">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,928}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.439 ***🔗
REST request fails:
Code: 404
Req: {<0.91434.0>,<<"/api/mucs/baddomain/wonderland-20.413081/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"222ccaa62c972941">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,526}
Params: #{path => <<"/api/mucs/baddomain/wonderland-20.413081/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-16 10:27:00.441 ***🔗
REST request fails:
Code: 404
Req: {<0.91440.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cd65b2e3e4850986">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:27:00 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,622}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3599@localhost\",\"sender\":\"alicE_invite_errors_3599@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}

*** CT 2024-04-16 10:27:00.446 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4621.html



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