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

=== Config value:

    [{watchdog,<0.74000.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.16.01/muc_http_api_suite.invite_errors.157699.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.16.01/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@26557528e1a5.2024-04-25_12.01.25"

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


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

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


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


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


*** User 2024-04-25 12:16:06.410 ***🔗
REST request fails:
Code: 400
Req: {<0.74066.0>,<<"/api/mucs/localhost/wonderland-66.388530/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6d9432a22dc92d4e">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3023@localhost\",\"sender\":\"alicE_invite_errors_3023@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:05 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,538}
Params: #{path => <<"/api/mucs/localhost/wonderland-66.388530/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3023@localhost\",\"sender\":\"alicE_invite_errors_3023@localhost\"}">>,
          return_headers => true}


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


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


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


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

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



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