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

=== Config value:

    [{watchdog,<0.66999.0>},
     {preset,"pgsql_cets"},
     {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@30ac10815d6f.2024-04-09_11.35.49/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-09_11.46.59/muc_http_api_suite.invite_errors.180482.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@30ac10815d6f.2024-04-09_11.35.49/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-09_11.46.59/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@30ac10815d6f.2024-04-09_11.35.49"

=== Started at 2024-04-09 11:47:05


*** CT 2024-04-09 11:47:05.031 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4284.html

*** User 2024-04-09 11:47:05.042 ***🔗
REST request:
Code: 201
Req: {<0.67046.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e05541a41b98cd7">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2540@localhost\",\"name\":\"wonderland-25.32174\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-25.32174">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"wonderland-25.32174">>,213,1873}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2540@localhost\",\"name\":\"wonderland-25.32174\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.044 ***🔗
REST request fails:
Code: 400
Req: {<0.67054.0>,<<"/api/mucs/localhost/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05ffa225e2ceae6d">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,580}
Params: #{path => <<"/api/mucs/localhost/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.046 ***🔗
REST request fails:
Code: 400
Req: {<0.67061.0>,<<"/api/mucs/localhost/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f7f42fa9a7a321d">>}],
      <<"{\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,527}
Params: #{path => <<"/api/mucs/localhost/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.047 ***🔗
REST request fails:
Code: 400
Req: {<0.67067.0>,<<"/api/mucs/localhost/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"55677d32c1a379fa">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"alicE_invite_errors_2540@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,560}
Params: #{path => <<"/api/mucs/localhost/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"alicE_invite_errors_2540@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.049 ***🔗
REST request fails:
Code: 400
Req: {<0.67073.0>,<<"/api/mucs/localhost/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c07fe01ec8dba0fd">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,517}
Params: #{path => <<"/api/mucs/localhost/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.051 ***🔗
REST request fails:
Code: 400
Req: {<0.67077.0>,<<"/api/mucs/localhost/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2857fdb8ae23a49">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,528}
Params: #{path => <<"/api/mucs/localhost/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-09 11:47:05.052 ***🔗
REST request fails:
Code: 404
Req: {<0.67082.0>,<<"/api/mucs/baddomain/wonderland-25.32174/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bf8b31afd5ffd48b">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:47:04 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,401}
Params: #{path => <<"/api/mucs/baddomain/wonderland-25.32174/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2540@localhost\",\"sender\":\"alicE_invite_errors_2540@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


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

*** CT 2024-04-09 11:47:05.057 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4284.html



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