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

=== Config value:

    [{watchdog,<0.67531.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@76f252b4c6ae.2024-03-11_08.50.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.04.10/muc_http_api_suite.invite_errors.208002.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@76f252b4c6ae.2024-03-11_08.50.44/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_09.04.10/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@76f252b4c6ae.2024-03-11_08.50.44"

=== Started at 2024-03-11 09:04:15


*** CT 2024-03-11 09:04:15.435 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2481.html

*** User 2024-03-11 09:04:15.454 ***🔗
REST request:
Code: 201
Req: {<0.67572.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fc5e547e194da9f7">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2792@domain.example.com\",\"name\":\"wonderland-55.436309\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-55.436309">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-55.436309">>,224,2795}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2792@domain.example.com\",\"name\":\"wonderland-55.436309\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.456 ***🔗
REST request fails:
Code: 400
Req: {<0.67582.0>,
      <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"47b6624d0d20961f">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,1096}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.458 ***🔗
REST request fails:
Code: 400
Req: {<0.67593.0>,
      <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36f5c26ef9426934">>}],
      <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,531}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.459 ***🔗
REST request fails:
Code: 400
Req: {<0.67597.0>,
      <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f4b43869f5be5be">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,467}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.461 ***🔗
REST request fails:
Code: 400
Req: {<0.67603.0>,
      <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d3b78cac62154195">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,615}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.463 ***🔗
REST request fails:
Code: 400
Req: {<0.67609.0>,
      <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a989719be13eda7">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,716}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.464 ***🔗
REST request fails:
Code: 404
Req: {<0.67614.0>,<<"/api/mucs/baddomain/wonderland-55.436309/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d8d208dd3f0225da">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,476}
Params: #{path => <<"/api/mucs/baddomain/wonderland-55.436309/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 09:04:15.466 ***🔗
REST request fails:
Code: 404
Req: {<0.67616.0>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0da20732a92bacb9">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:04:14 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,626}
Params: #{path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2792@domain.example.com\",\"sender\":\"alicE_invite_errors_2792@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}

*** CT 2024-03-11 09:04:15.470 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2481.html



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