=== Test case: muc_light_http_api_SUITE:invite_to_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.28988.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/muc_light_http_api_suite.invite_to_room.99331.html"},
     {tc_group_properties,[{name,positive},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_light_http_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:34:18


*** CT 2022-01-27 15:34:18.268 *** View log from node mongooseim@localhost when started mongooseim@localhost_5384.html
*** CT 2022-01-27 15:34:18.268 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2348.html

*** User 2022-01-27 15:34:18.282 ***
alicE_invite_to_room_1790@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-01-27 15:34:18.282 ***
alicE_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='283728dcfb6d7e2d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.282 ***
alicE_invite_to_room_1790@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-01-27 15:34:18.283 ***
alicE_invite_to_room_1790@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE3OTAAbWF0eWdyeXNh</auth>



*** User 2022-01-27 15:34:18.286 ***
alicE_invite_to_room_1790@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:34:18.286 ***
alicE_invite_to_room_1790@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-01-27 15:34:18.287 ***
alicE_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='564b1891d23c11a9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.287 ***
alicE_invite_to_room_1790@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-01-27 15:34:18.287 ***
alicE_invite_to_room_1790@localhost/res1 out
<iq type='set' id='32cab6bd1e6abebc5ca6c6a365af60d5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.287 ***
alicE_invite_to_room_1790@localhost/res1 in
<iq id='32cab6bd1e6abebc5ca6c6a365af60d5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invite_to_room_1790@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.287 ***
alicE_invite_to_room_1790@localhost/res1 out
<iq type='set' id='b6f0c6bfbfec58e831453d1ce5044272'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.288 ***
alicE_invite_to_room_1790@localhost/res1 in
<iq type='result' id='b6f0c6bfbfec58e831453d1ce5044272'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.288 ***
alicE_invite_to_room_1790@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:18.290 ***
alicE_invite_to_room_1790@localhost/res1 in
<presence from='alicE_invite_to_room_1790@localhost/res1' to='alice_invite_to_room_1790@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:18.291 ***
bOb_invite_to_room_1790@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-01-27 15:34:18.291 ***
bOb_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf1719dcb4d11924' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.291 ***
bOb_invite_to_room_1790@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-01-27 15:34:18.291 ***
bOb_invite_to_room_1790@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNzkwAG1ha3JvbGlrYQ==</auth>



*** User 2022-01-27 15:34:18.293 ***
bOb_invite_to_room_1790@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:34:18.293 ***
bOb_invite_to_room_1790@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-01-27 15:34:18.293 ***
bOb_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5986927cd9eb680' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.294 ***
bOb_invite_to_room_1790@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-01-27 15:34:18.294 ***
bOb_invite_to_room_1790@localhost/res1 out
<iq type='set' id='092bfce1c35e062d916f3459131f6504'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.294 ***
bOb_invite_to_room_1790@localhost/res1 in
<iq id='092bfce1c35e062d916f3459131f6504' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invite_to_room_1790@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.294 ***
bOb_invite_to_room_1790@localhost/res1 out
<iq type='set' id='19a3782c1820e63fcc6aec5573986bdd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.295 ***
bOb_invite_to_room_1790@localhost/res1 in
<iq type='result' id='19a3782c1820e63fcc6aec5573986bdd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.295 ***
bOb_invite_to_room_1790@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:18.297 ***
bOb_invite_to_room_1790@localhost/res1 in
<presence from='bOb_invite_to_room_1790@localhost/res1' to='bob_invite_to_room_1790@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:18.297 ***
kate_invite_to_room_1790@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-01-27 15:34:18.298 ***
kate_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76e85fc904d511ae' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.298 ***
kate_invite_to_room_1790@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-01-27 15:34:18.298 ***
kate_invite_to_room_1790@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTc5MABtYWtyb3dlO3A=</auth>



*** User 2022-01-27 15:34:18.299 ***
kate_invite_to_room_1790@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:34:18.299 ***
kate_invite_to_room_1790@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-01-27 15:34:18.299 ***
kate_invite_to_room_1790@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e947af0dc7044c19' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:18.299 ***
kate_invite_to_room_1790@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-01-27 15:34:18.299 ***
kate_invite_to_room_1790@localhost/res1 out
<iq type='set' id='b3982ff85b3ca56b1ab51fd6ee76a8e2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.300 ***
kate_invite_to_room_1790@localhost/res1 in
<iq id='b3982ff85b3ca56b1ab51fd6ee76a8e2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1790@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:18.300 ***
kate_invite_to_room_1790@localhost/res1 out
<iq type='set' id='011adb3a8926305e2242313ff752483c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.300 ***
kate_invite_to_room_1790@localhost/res1 in
<iq type='result' id='011adb3a8926305e2242313ff752483c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:18.300 ***
kate_invite_to_room_1790@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:18.304 ***
kate_invite_to_room_1790@localhost/res1 in
<presence from='kate_invite_to_room_1790@localhost/res1' to='kate_invite_to_room_1790@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:18.304 ***
alicE_invite_to_room_1790@localhost/res1 out
<iq type='set' id='eec3da7c9629fcedae7751076b059026' to='muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>kate_invite_to_room_1790@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-01-27 15:34:18.309 ***
alicE_invite_to_room_1790@localhost/res1 in
<message from='1643-297658-305374@muclight.localhost' to='alice_invite_to_room_1790@localhost' id='eec3da7c9629fcedae7751076b059026' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-297658-305360</version>
		<user affiliation='owner'>alice_invite_to_room_1790@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:34:18.309 ***
alicE_invite_to_room_1790@localhost/res1 in
<iq from='muclight.localhost' to='alicE_invite_to_room_1790@localhost/res1' id='eec3da7c9629fcedae7751076b059026' type='result'/>



*** User 2022-01-27 15:34:18.320 ***
REST request:
Code: 204
Req: {<0.29074.1>,
      <<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"026e1e8d700b189b">>}],
      <<"{\"sender\":\"alicE_invite_to_room_1790@localhost\",\"recipient\":\"bOb_invite_to_room_1790@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:34:17 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10707}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_to_room_1790@localhost\",\"recipient\":\"bOb_invite_to_room_1790@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:34:18.321 ***
bOb_invite_to_room_1790@localhost/res1 in
<message from='1643-297658-305374@muclight.localhost' to='bob_invite_to_room_1790@localhost' id='1e0fe898-c317-474e-833c-e5afca3852ee' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-297658-317912</version>
		<user affiliation='member'>bob_invite_to_room_1790@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:34:18.321 ***
alicE_invite_to_room_1790@localhost/res1 in
<message from='1643-297658-305374@muclight.localhost' to='alice_invite_to_room_1790@localhost' id='1e0fe898-c317-474e-833c-e5afca3852ee' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-297658-305360</prev-version>
		<version>1643-297658-317912</version>
		<user affiliation='member'>bob_invite_to_room_1790@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:34:18.321 ***
kate_invite_to_room_1790@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:34:18.321 ***
kate_invite_to_room_1790@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:34:18.321 ***
bOb_invite_to_room_1790@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:34:18.341 ***
bOb_invite_to_room_1790@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:34:18.341 ***
alicE_invite_to_room_1790@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:34:18.341 ***
alicE_invite_to_room_1790@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:34:18.343 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2348.html
*** CT 2022-01-27 15:34:18.344 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5385.html



=== Ended at 2022-01-27 15:34:18
=== successfully completed test case
=== === Returned value: ok