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

=== Config value:

    [{watchdog,<0.72988.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_11.41.27/muc_http_api_suite.invite_errors.59269.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-11_11.41.27/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@38467046e2a2.2024-03-11_11.25.28"

=== Started at 2024-03-11 11:41:33


*** CT 2024-03-11 11:41:33.562 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4628.html

*** User 2024-03-11 11:41:33.574 ***🔗
REST request:
Code: 201
Req: {<0.73035.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"101337383b87093b">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2888@localhost\",\"name\":\"wonderland-93.563135\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-93.563135">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-93.563135">>,215,2057}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alicE_invite_errors_2888@localhost\",\"name\":\"wonderland-93.563135\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.576 ***🔗
REST request fails:
Code: 400
Req: {<0.73046.0>,<<"/api/mucs/localhost/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04d8c2af9a6c1c0e">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Missing sender JID\"">>,146,667}
Params: #{path => <<"/api/mucs/localhost/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.577 ***🔗
REST request fails:
Code: 400
Req: {<0.73054.0>,<<"/api/mucs/localhost/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a4e855d3d2840fc9">>}],
      <<"{\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing recipient JID\"">>,149,445}
Params: #{path => <<"/api/mucs/localhost/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.578 ***🔗
REST request fails:
Code: 400
Req: {<0.73058.0>,<<"/api/mucs/localhost/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"73175c7146939337">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Missing invite reason\"">>,149,487}
Params: #{path => <<"/api/mucs/localhost/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.580 ***🔗
REST request fails:
Code: 400
Req: {<0.73062.0>,<<"/api/mucs/localhost/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ed4fe8d43c057b0">>}],
      <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"23">>}],
         <<"\"Invalid recipient JID\"">>,149,559}
Params: #{path => <<"/api/mucs/localhost/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"@badjid\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.581 ***🔗
REST request fails:
Code: 400
Req: {<0.73069.0>,<<"/api/mucs/localhost/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"06ce82399cabdb65">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"\"Invalid sender JID\"">>,146,491}
Params: #{path => <<"/api/mucs/localhost/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"@badjid\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.583 ***🔗
REST request fails:
Code: 404
Req: {<0.73071.0>,<<"/api/mucs/baddomain/wonderland-93.563135/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a95726ee441b1fc2">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"22">>}],
         <<"\"MUC domain not found\"">>,146,472}
Params: #{path => <<"/api/mucs/baddomain/wonderland-93.563135/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:41:33.584 ***🔗
REST request fails:
Code: 404
Req: {<0.73076.0>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6511f7823c60222">>}],
      <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:41:33 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,555}
Params: #{path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"recipient\":\"bOb_invite_errors_2888@localhost\",\"sender\":\"alicE_invite_errors_2888@localhost\",\"reason\":\"Join this room!\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}

*** CT 2024-03-11 11:41:33.587 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4628.html



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