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

=== Config value:

    [{watchdog,<0.29685.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.06.34/muc_http_api_suite.failed_invites.107523.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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.06.34/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@fac56f14d8cf.2022-03-07_15.57.55"

=== Started at 2022-03-07 16:06:39


*** CT 2022-03-07 16:06:39.410 *** View log from node mongooseim@localhost when started mongooseim@localhost_4492.html
*** CT 2022-03-07 16:06:39.410 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1881.html

*** User 2022-03-07 16:06:39.417 ***
alicE_failed_invites_1858@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-03-07 16:06:39.417 ***
alicE_failed_invites_1858@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='866c952864fd12dd' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:06:39.417 ***
alicE_failed_invites_1858@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-03-07 16:06:39.417 ***
alicE_failed_invites_1858@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE4NTgAbWF0eWdyeXNh</auth>



*** User 2022-03-07 16:06:39.418 ***
alicE_failed_invites_1858@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:06:39.418 ***
alicE_failed_invites_1858@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-03-07 16:06:39.418 ***
alicE_failed_invites_1858@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71ed37984620f0f2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:06:39.418 ***
alicE_failed_invites_1858@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-03-07 16:06:39.418 ***
alicE_failed_invites_1858@localhost/res1 out
<iq type='set' id='bfc4f07414f5e2668804c0619c571f90'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:06:39.418 ***
alicE_failed_invites_1858@localhost/res1 in
<iq id='bfc4f07414f5e2668804c0619c571f90' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_failed_invites_1858@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:06:39.419 ***
alicE_failed_invites_1858@localhost/res1 out
<iq type='set' id='56cfe816a8ef2ebcd8f425b99338599a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:06:39.419 ***
alicE_failed_invites_1858@localhost/res1 in
<iq type='result' id='56cfe816a8ef2ebcd8f425b99338599a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:06:39.419 ***
alicE_failed_invites_1858@localhost/res1 out
<presence/>



*** User 2022-03-07 16:06:39.421 ***
alicE_failed_invites_1858@localhost/res1 in
<presence from='alicE_failed_invites_1858@localhost/res1' to='alice_failed_invites_1858@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:06:39.422 ***
bOb_failed_invites_1858@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-03-07 16:06:39.422 ***
bOb_failed_invites_1858@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8097280c0e43fa5f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:06:39.422 ***
bOb_failed_invites_1858@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-03-07 16:06:39.422 ***
bOb_failed_invites_1858@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xODU4AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-07 16:06:39.423 ***
bOb_failed_invites_1858@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:06:39.423 ***
bOb_failed_invites_1858@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-03-07 16:06:39.423 ***
bOb_failed_invites_1858@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c9e8a29d3fddfe68' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:06:39.424 ***
bOb_failed_invites_1858@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-03-07 16:06:39.424 ***
bOb_failed_invites_1858@localhost/res1 out
<iq type='set' id='9528603daa4060fad4b903a27fc6716e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:06:39.424 ***
bOb_failed_invites_1858@localhost/res1 in
<iq id='9528603daa4060fad4b903a27fc6716e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_failed_invites_1858@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:06:39.424 ***
bOb_failed_invites_1858@localhost/res1 out
<iq type='set' id='b29025cfb87bdd35318f00554ba4fa35'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:06:39.424 ***
bOb_failed_invites_1858@localhost/res1 in
<iq type='result' id='b29025cfb87bdd35318f00554ba4fa35'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:06:39.424 ***
bOb_failed_invites_1858@localhost/res1 out
<presence/>



*** User 2022-03-07 16:06:39.426 ***
bOb_failed_invites_1858@localhost/res1 in
<presence from='bOb_failed_invites_1858@localhost/res1' to='bob_failed_invites_1858@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:06:39.429 ***
REST request:
Code: 201
Req: {<0.29714.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d53e4e6102ca6c82">>}],
      <<"{\"owner\":\"alicE_failed_invites_1858@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-99.410773\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-99.410773">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-99.410773">>,222,2342}
Params: #{body =>
              <<"{\"owner\":\"alicE_failed_invites_1858@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-99.410773\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:06:39.431 ***
REST request fails:
Code: 404
Req: {<0.29716.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb74bfb223718e4a">>}],
      <<"{\"sender\":\"alicE_failed_invites_1858@localhost\",\"recipient\":\"bOb_failed_invites_1858@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"19">>}],
         <<"room does not exist">>,150,709}
Params: #{body =>
              <<"{\"sender\":\"alicE_failed_invites_1858@localhost\",\"recipient\":\"bOb_failed_invites_1858@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-03-07 16:06:39.433 ***
REST request fails:
Code: 400
Req: {<0.29722.1>,<<"/api/mucs/localhost/wonderland-99.410773/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c5723823115b0ebc">>}],
      <<"{\"sender\":\"alicE_failed_invites_1858@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,664}
Params: #{body =>
              <<"{\"sender\":\"alicE_failed_invites_1858@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-99.410773/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:06:39.435 ***
REST request fails:
Code: 400
Req: {<0.29726.1>,<<"/api/mucs/localhost/wonderland-99.410773/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6e0232a2823bc39">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1858@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,955}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1858@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-99.410773/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:06:39.435 ***
bOb_failed_invites_1858@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:06:39.435 ***
bOb_failed_invites_1858@localhost/res1 in
</stream:stream>

*** User 2022-03-07 16:06:39.435 ***
alicE_failed_invites_1858@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:06:39.435 ***
alicE_failed_invites_1858@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 16:06:39.440 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1881.html
*** CT 2022-03-07 16:06:39.440 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4492.html



=== Ended at 2022-03-07 16:06:39
=== successfully completed test case
=== === Returned value: ok