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

=== Config value:

    [{watchdog,<0.5726.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {preset,"internal_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e940550c5ac4.2022-04-29_13.53.57/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-29_14.01.51/muc_http_api_suite.failed_invites.63618.html"},
     {tc_group_properties,[{name,negative},{repeat_until_all_ok,3},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@e940550c5ac4.2022-04-29_13.53.57/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-29_14.01.51/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@e940550c5ac4.2022-04-29_13.53.57"

=== Started at 2022-04-29 14:01:56


*** CT 2022-04-29 14:01:56.654 *** View log from node mongooseim@localhost when started mongooseim@localhost_5096.html
*** CT 2022-04-29 14:01:56.655 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1935.html

*** User 2022-04-29 14:01:56.660 ***
alicE_failed_invites_1060@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-04-29 14:01:56.660 ***
alicE_failed_invites_1060@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd51d9e1352b54bb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzEwNjAAbWF0eWdyeXNh</auth>



*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af3027f0326afb7f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-29 14:01:56.661 ***
alicE_failed_invites_1060@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-04-29 14:01:56.662 ***
alicE_failed_invites_1060@localhost/res1 out
<iq type='set' id='26c44ebb4208271ef804a9927669d3b4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-29 14:01:56.662 ***
alicE_failed_invites_1060@localhost/res1 in
<iq id='26c44ebb4208271ef804a9927669d3b4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_failed_invites_1060@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-29 14:01:56.662 ***
alicE_failed_invites_1060@localhost/res1 out
<iq type='set' id='ed8aed526fe37d2e26f336942d7bad9a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-29 14:01:56.662 ***
alicE_failed_invites_1060@localhost/res1 in
<iq type='result' id='ed8aed526fe37d2e26f336942d7bad9a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-29 14:01:56.662 ***
alicE_failed_invites_1060@localhost/res1 out
<presence/>



*** User 2022-04-29 14:01:56.663 ***
alicE_failed_invites_1060@localhost/res1 in
<presence from='alicE_failed_invites_1060@localhost/res1' to='alice_failed_invites_1060@localhost/res1' xml:lang='en'/>



*** User 2022-04-29 14:01:56.663 ***
bOb_failed_invites_1060@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-04-29 14:01:56.663 ***
bOb_failed_invites_1060@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d99cbe4875bb309f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-29 14:01:56.663 ***
bOb_failed_invites_1060@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xMDYwAG1ha3JvbGlrYQ==</auth>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cd2f279bb888e23' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 out
<iq type='set' id='704a74e7c36adf2e56cbac5efa85eea4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 in
<iq id='704a74e7c36adf2e56cbac5efa85eea4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_failed_invites_1060@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-29 14:01:56.664 ***
bOb_failed_invites_1060@localhost/res1 out
<iq type='set' id='0f8037bb8e3bfbf91c88e6d7558e68b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-29 14:01:56.665 ***
bOb_failed_invites_1060@localhost/res1 in
<iq type='result' id='0f8037bb8e3bfbf91c88e6d7558e68b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-29 14:01:56.665 ***
bOb_failed_invites_1060@localhost/res1 out
<presence/>



*** User 2022-04-29 14:01:56.665 ***
bOb_failed_invites_1060@localhost/res1 in
<presence from='bOb_failed_invites_1060@localhost/res1' to='bob_failed_invites_1060@localhost/res1' xml:lang='en'/>



*** User 2022-04-29 14:01:56.667 ***
REST request:
Code: 201
Req: {<0.5753.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"673aeb7062116b6c">>}],
      <<"{\"owner\":\"alicE_failed_invites_1060@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-16.655794\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-16.655794">>},
          {<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-16.655794">>,222,1006}
Params: #{body =>
              <<"{\"owner\":\"alicE_failed_invites_1060@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-16.655794\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-29 14:01:56.669 ***
REST request fails:
Code: 404
Req: {<0.5759.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"576dd1988481c265">>}],
      <<"{\"sender\":\"alicE_failed_invites_1060@localhost\",\"recipient\":\"bOb_failed_invites_1060@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"Room not found">>,145,607}
Params: #{body =>
              <<"{\"sender\":\"alicE_failed_invites_1060@localhost\",\"recipient\":\"bOb_failed_invites_1060@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-29 14:01:56.671 ***
REST request fails:
Code: 400
Req: {<0.5763.1>,<<"/api/mucs/localhost/wonderland-16.655794/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94e00ac60d360d2f">>}],
      <<"{\"sender\":\"alicE_failed_invites_1060@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,572}
Params: #{body =>
              <<"{\"sender\":\"alicE_failed_invites_1060@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-16.655794/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-29 14:01:56.672 ***
REST request fails:
Code: 400
Req: {<0.5767.1>,<<"/api/mucs/localhost/wonderland-16.655794/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6278dec97c148160">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1060@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,613}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1060@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-16.655794/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-29 14:01:56.672 ***
bOb_failed_invites_1060@localhost/res1 out
</stream:stream>

*** User 2022-04-29 14:01:56.672 ***
bOb_failed_invites_1060@localhost/res1 in
</stream:stream>

*** User 2022-04-29 14:01:56.672 ***
alicE_failed_invites_1060@localhost/res1 out
</stream:stream>

*** User 2022-04-29 14:01:56.673 ***
alicE_failed_invites_1060@localhost/res1 in
</stream:stream>
*** CT 2022-04-29 14:01:56.674 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1935.html
*** CT 2022-04-29 14:01:56.675 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5096.html



=== Ended at 2022-04-29 14:01:56
=== successfully completed test case
=== === Returned value: ok