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

=== Config value:

    [{watchdog,<0.42380.0>},
     {preset,"internal_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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-29_09.27.42/muc_http_api_suite.invite_errors.90242.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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-29_09.27.42/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@8dadd8a9c704.2024-03-29_09.14.50"

=== Started at 2024-03-29 09:27:47


*** CT 2024-03-29 09:27:47.636 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4333.html

*** User 2024-03-29 09:27:47.657 ***🔗
REST request:
Code: 201
Req: {<0.42421.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aefc830a570561e7">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1475@localhost\",\"name\":\"wonderland-67.637039\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-67.637039">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-67.637039">>,215,1335}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_1475@localhost\",\"name\":\"wonderland-67.637039\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.659 ***🔗
REST request fails:
Code: 400
Req: {<0.42429.0>,<<"/api/mucs/localhost/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5a3bdf8b4f60c75d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,779}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.662 ***🔗
REST request fails:
Code: 400
Req: {<0.42439.0>,<<"/api/mucs/localhost/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b49942b8eb959e71">>}],
      <<"{\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,751}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.665 ***🔗
REST request fails:
Code: 400
Req: {<0.42446.0>,<<"/api/mucs/localhost/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8f00dc02c31bd14a">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,812}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.667 ***🔗
REST request fails:
Code: 400
Req: {<0.42450.0>,<<"/api/mucs/localhost/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bf54b150b265f1c7">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,920}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.669 ***🔗
REST request fails:
Code: 400
Req: {<0.42456.0>,<<"/api/mucs/localhost/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"980623e295428b40">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,473}
Params: #{path => <<"/api/mucs/localhost/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.671 ***🔗
REST request fails:
Code: 404
Req: {<0.42463.0>,<<"/api/mucs/baddomain/wonderland-67.637039/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8d21e5276fe48c5b">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,642}
Params: #{path => <<"/api/mucs/baddomain/wonderland-67.637039/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:27:47.673 ***🔗
REST request fails:
Code: 404
Req: {<0.42467.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7d5679eedd36087c">>}],
      <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:27:47 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,767}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_1475@localhost\",\"sender\":\"alicE_invite_errors_1475@localhost\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,return_headers => true}

*** CT 2024-03-29 09:27:47.681 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4333.html



=== Ended at 2024-03-29 09:27:47
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}