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

=== Config value:

    [{watchdog,<0.74086.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@abbfb30c6dcc.2024-04-15_16.45.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_17.00.46/muc_http_api_suite.invite_errors.70661.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@abbfb30c6dcc.2024-04-15_16.45.58/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-15_17.00.46/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@abbfb30c6dcc.2024-04-15_16.45.58"

=== Started at 2024-04-15 17:00:51


*** CT 2024-04-15 17:00:51.620 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4737.html

*** User 2024-04-15 17:00:51.631 ***🔗
REST request:
Code: 201
Req: {<0.74129.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3f5fd88ff6c23a1c">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3079@localhost\",\"name\":\"wonderland-51.620396\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-51.620396">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-51.620396">>,215,2276}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_3079@localhost\",\"name\":\"wonderland-51.620396\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.633 ***🔗
REST request fails:
Code: 400
Req: {<0.74139.0>,<<"/api/mucs/localhost/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6ce2a3ce8eddca7d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,652}
Params: #{path => <<"/api/mucs/localhost/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.635 ***🔗
REST request fails:
Code: 400
Req: {<0.74145.0>,<<"/api/mucs/localhost/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4343e9fe6ef91cc8">>}],
      <<"{\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,710}
Params: #{path => <<"/api/mucs/localhost/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.637 ***🔗
REST request fails:
Code: 400
Req: {<0.74156.0>,<<"/api/mucs/localhost/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e66f2e1c29f71fff">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,777}
Params: #{path => <<"/api/mucs/localhost/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.639 ***🔗
REST request fails:
Code: 400
Req: {<0.74160.0>,<<"/api/mucs/localhost/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97209d51cc766360">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,701}
Params: #{path => <<"/api/mucs/localhost/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.640 ***🔗
REST request fails:
Code: 400
Req: {<0.74164.0>,<<"/api/mucs/localhost/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10f9206668d6fbd5">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,597}
Params: #{path => <<"/api/mucs/localhost/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.642 ***🔗
REST request fails:
Code: 404
Req: {<0.74167.0>,<<"/api/mucs/baddomain/wonderland-51.620396/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"89fd3281d5a998c4">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,579}
Params: #{path => <<"/api/mucs/baddomain/wonderland-51.620396/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:00:51.644 ***🔗
REST request fails:
Code: 404
Req: {<0.74173.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e86b9668e53538e7">>}],
      <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:00:51 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,908}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_3079@localhost\",\"sender\":\"alicE_invite_errors_3079@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}

*** CT 2024-04-15 17:00:51.648 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4737.html



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