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

=== Config value:

    [{watchdog,<0.70145.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.22.03/muc_http_api_suite.invite_errors.191234.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.22.03/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@1c2ae12cdb1a.2023-11-17_15.10.15"

=== Started at 2023-11-17 15:22:08


*** CT 2023-11-17 15:22:08.447 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4443.html

*** User 2023-11-17 15:22:08.456 ***🔗
REST request:
Code: 201
Req: {<0.70192.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"30b9b01465b7cb34">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2549@localhost\",\"name\":\"wonderland-28.447853\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-28.447853">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-28.447853">>,215,1754}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2549@localhost\",\"name\":\"wonderland-28.447853\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.458 ***🔗
REST request fails:
Code: 400
Req: {<0.70205.0>,<<"/api/mucs/localhost/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"db2ecbeb0e9943da">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,678}
Params: #{path => <<"/api/mucs/localhost/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.460 ***🔗
REST request fails:
Code: 400
Req: {<0.70213.0>,<<"/api/mucs/localhost/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"be2b626009277c56">>}],
      <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,573}
Params: #{path => <<"/api/mucs/localhost/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.462 ***🔗
REST request fails:
Code: 400
Req: {<0.70217.0>,<<"/api/mucs/localhost/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5c541cf9b2af7632">>}],
      <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,497}
Params: #{path => <<"/api/mucs/localhost/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.463 ***🔗
REST request fails:
Code: 400
Req: {<0.70223.0>,<<"/api/mucs/localhost/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c8370208b0a625a">>}],
      <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,551}
Params: #{path => <<"/api/mucs/localhost/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.465 ***🔗
REST request fails:
Code: 400
Req: {<0.70228.0>,<<"/api/mucs/localhost/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3985775b5a2d46b9">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,845}
Params: #{path => <<"/api/mucs/localhost/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.466 ***🔗
REST request fails:
Code: 404
Req: {<0.70231.0>,<<"/api/mucs/baddomain/wonderland-28.447853/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"24c87a3886f284fe">>}],
      <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,565}
Params: #{path => <<"/api/mucs/baddomain/wonderland-28.447853/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-17 15:22:08.468 ***🔗
REST request fails:
Code: 404
Req: {<0.70235.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8972b9e546e73053">>}],
      <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:22:08 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,547}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2549@localhost\",\"recipient\":\"bOb_invite_errors_2549@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,return_headers => true}

*** CT 2023-11-17 15:22:08.470 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4443.html



=== Ended at 2023-11-17 15:22:08
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},<<"Room not found">>}