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

=== Config value:

    [{watchdog,<0.69253.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@537a0bef439b.2024-03-29_09.14.34/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-29_09.28.57/muc_http_api_suite.invite_errors.145923.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@537a0bef439b.2024-03-29_09.14.34/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-29_09.28.57/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@537a0bef439b.2024-03-29_09.14.34"

=== Started at 2024-03-29 09:29:03


*** CT 2024-03-29 09:29:03.326 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3607.html

*** User 2024-03-29 09:29:03.349 ***🔗
REST request:
Code: 201
Req: {<0.69298.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"878471b73c3e0fb5">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2927@domain.example.com\",\"name\":\"wonderland-43.326820\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-43.326820">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-43.326820">>,224,4268}
Params: #{path => <<"/api/mucs/domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2927@domain.example.com\",\"name\":\"wonderland-43.326820\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.351 ***🔗
REST request fails:
Code: 400
Req: {<0.69308.0>,
      <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"028f373bdea05045">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,815}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.354 ***🔗
REST request fails:
Code: 400
Req: {<0.69314.0>,
      <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e15120f435b41a28">>}],
      <<"{\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,1322}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.356 ***🔗
REST request fails:
Code: 400
Req: {<0.69320.0>,
      <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54d29c95ace2c773">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,478}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.358 ***🔗
REST request fails:
Code: 400
Req: {<0.69327.0>,
      <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"368547adc08944ad">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,500}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.360 ***🔗
REST request fails:
Code: 400
Req: {<0.69332.0>,
      <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49d20b93194b3722">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,733}
Params: #{path =>
              <<"/api/mucs/domain.example.com/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.362 ***🔗
REST request fails:
Code: 404
Req: {<0.69336.0>,<<"/api/mucs/baddomain/wonderland-43.326820/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3b0bae9b8340e946">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,747}
Params: #{path => <<"/api/mucs/baddomain/wonderland-43.326820/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-29 09:29:03.364 ***🔗
REST request fails:
Code: 404
Req: {<0.69341.0>,
      <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1147be693fe0b766">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:02 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,753}
Params: #{path =>
              <<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2927@domain.example.com\",\"sender\":\"alicE_invite_errors_2927@domain.example.com\",\"reason\":\"Join this room!\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}

*** CT 2024-03-29 09:29:03.368 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3607.html



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