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

=== Config value:

    [{watchdog,<0.72246.0>},
     {preset,"odbc_mssql_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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-22_12.53.10/muc_http_api_suite.invite_errors.156419.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-02-22_12.53.10/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@fb43d4252d17.2024-02-22_12.37.44"

=== Started at 2024-02-22 12:53:16


*** CT 2024-02-22 12:53:16.064 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4678.html

*** User 2024-02-22 12:53:16.077 ***🔗
REST request:
Code: 201
Req: {<0.72293.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9411a15bb29b01ed">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2860@localhost\",\"name\":\"wonderland-96.64784\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-96.64784">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"wonderland-96.64784">>,213,2710}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2860@localhost\",\"name\":\"wonderland-96.64784\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.079 ***🔗
REST request fails:
Code: 400
Req: {<0.72297.0>,<<"/api/mucs/localhost/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"90de023223f10f55">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,669}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.081 ***🔗
REST request fails:
Code: 400
Req: {<0.72307.0>,<<"/api/mucs/localhost/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7c4f0ab99422fbc8">>}],
      <<"{\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,508}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.082 ***🔗
REST request fails:
Code: 400
Req: {<0.72314.0>,<<"/api/mucs/localhost/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec78362bc51b3eb7">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,552}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.084 ***🔗
REST request fails:
Code: 400
Req: {<0.72318.0>,<<"/api/mucs/localhost/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7b83787c3ab4a470">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,570}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.086 ***🔗
REST request fails:
Code: 400
Req: {<0.72325.0>,<<"/api/mucs/localhost/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8017ed197111f819">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,629}
Params: #{path => <<"/api/mucs/localhost/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.088 ***🔗
REST request fails:
Code: 404
Req: {<0.72329.0>,<<"/api/mucs/baddomain/wonderland-96.64784/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dab4db14717a1fa8">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,659}
Params: #{path => <<"/api/mucs/baddomain/wonderland-96.64784/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}


*** User 2024-02-22 12:53:16.089 ***🔗
REST request fails:
Code: 404
Req: {<0.72334.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c5cc0ede2317f914">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:53:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,615}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2860@localhost\",\"sender\":\"alicE_invite_errors_2860@localhost\",\"reason\":\"Join this room!\"}">>,
          return_headers => true}

*** CT 2024-02-22 12:53:16.093 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4678.html



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