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

=== Config value:

    [{watchdog,<0.28419.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-25_16.31.49/muc_light_http_api_suite.invite_to_room.121730.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-25_16.31.49/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:31:50


*** CT 2022-01-25 16:31:50.154 *** View log from node mongooseim@localhost when started mongooseim@localhost_5398.html
*** CT 2022-01-25 16:31:50.154 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2339.html

*** User 2022-01-25 16:31:50.170 ***
alicE_invite_to_room_1860@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-25 16:31:50.171 ***
alicE_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d20c229b7b4531c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.171 ***
alicE_invite_to_room_1860@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-25 16:31:50.171 ***
alicE_invite_to_room_1860@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE4NjAAbWF0eWdyeXNh</auth>



*** User 2022-01-25 16:31:50.175 ***
alicE_invite_to_room_1860@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.175 ***
alicE_invite_to_room_1860@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-25 16:31:50.175 ***
alicE_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d50e3b3ac5f3476a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.176 ***
alicE_invite_to_room_1860@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-25 16:31:50.176 ***
alicE_invite_to_room_1860@localhost/res1 out
<iq type='set' id='8b3bda8938a14c1c4ed49c266799b858'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.176 ***
alicE_invite_to_room_1860@localhost/res1 in
<iq id='8b3bda8938a14c1c4ed49c266799b858' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invite_to_room_1860@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.176 ***
alicE_invite_to_room_1860@localhost/res1 out
<iq type='set' id='52768dc02fc7623d7f0aeb08cfc162b6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.176 ***
alicE_invite_to_room_1860@localhost/res1 in
<iq type='result' id='52768dc02fc7623d7f0aeb08cfc162b6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.177 ***
alicE_invite_to_room_1860@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.178 ***
alicE_invite_to_room_1860@localhost/res1 in
<presence from='alicE_invite_to_room_1860@localhost/res1' to='alice_invite_to_room_1860@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.179 ***
bOb_invite_to_room_1860@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-25 16:31:50.179 ***
bOb_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='314eccdb15de9967' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.179 ***
bOb_invite_to_room_1860@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-25 16:31:50.179 ***
bOb_invite_to_room_1860@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xODYwAG1ha3JvbGlrYQ==</auth>



*** User 2022-01-25 16:31:50.180 ***
bOb_invite_to_room_1860@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.180 ***
bOb_invite_to_room_1860@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-25 16:31:50.180 ***
bOb_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74bf17558c9fadce' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.180 ***
bOb_invite_to_room_1860@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-25 16:31:50.181 ***
bOb_invite_to_room_1860@localhost/res1 out
<iq type='set' id='73ab4e063168d3643d0b53ba16bb45b0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.181 ***
bOb_invite_to_room_1860@localhost/res1 in
<iq id='73ab4e063168d3643d0b53ba16bb45b0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invite_to_room_1860@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.181 ***
bOb_invite_to_room_1860@localhost/res1 out
<iq type='set' id='3de27aac17f81af835973b5ac14a7793'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.181 ***
bOb_invite_to_room_1860@localhost/res1 in
<iq type='result' id='3de27aac17f81af835973b5ac14a7793'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.181 ***
bOb_invite_to_room_1860@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.183 ***
bOb_invite_to_room_1860@localhost/res1 in
<presence from='bOb_invite_to_room_1860@localhost/res1' to='bob_invite_to_room_1860@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.184 ***
kate_invite_to_room_1860@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-25 16:31:50.184 ***
kate_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='297d70b1bc0c9bc9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.184 ***
kate_invite_to_room_1860@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-25 16:31:50.184 ***
kate_invite_to_room_1860@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTg2MABtYWtyb3dlO3A=</auth>



*** User 2022-01-25 16:31:50.185 ***
kate_invite_to_room_1860@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.185 ***
kate_invite_to_room_1860@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-25 16:31:50.185 ***
kate_invite_to_room_1860@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eca1aee5a0c31dbc' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.185 ***
kate_invite_to_room_1860@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-25 16:31:50.185 ***
kate_invite_to_room_1860@localhost/res1 out
<iq type='set' id='ea165a91686dfb3aefb2a44a654b6d6d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.186 ***
kate_invite_to_room_1860@localhost/res1 in
<iq id='ea165a91686dfb3aefb2a44a654b6d6d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1860@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.186 ***
kate_invite_to_room_1860@localhost/res1 out
<iq type='set' id='bb2611f1563c96161846e62860b32933'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.186 ***
kate_invite_to_room_1860@localhost/res1 in
<iq type='result' id='bb2611f1563c96161846e62860b32933'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.186 ***
kate_invite_to_room_1860@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.192 ***
kate_invite_to_room_1860@localhost/res1 in
<presence from='kate_invite_to_room_1860@localhost/res1' to='kate_invite_to_room_1860@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.192 ***
alicE_invite_to_room_1860@localhost/res1 out
<iq type='set' id='70e4bcb1b01f324b316196a577563509' to='muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>kate_invite_to_room_1860@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-01-25 16:31:50.201 ***
alicE_invite_to_room_1860@localhost/res1 in
<message from='1643-128310-193559@muclight.localhost' to='alice_invite_to_room_1860@localhost' id='70e4bcb1b01f324b316196a577563509' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-128310-193546</version>
		<user affiliation='owner'>alice_invite_to_room_1860@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.201 ***
alicE_invite_to_room_1860@localhost/res1 in
<iq from='muclight.localhost' to='alicE_invite_to_room_1860@localhost/res1' id='70e4bcb1b01f324b316196a577563509' type='result'/>



*** User 2022-01-25 16:31:50.251 ***
REST request:
Code: 204
Req: {<0.28508.1>,
      <<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"285d9159a35d78d4">>}],
      <<"{\"sender\":\"alicE_invite_to_room_1860@localhost\",\"recipient\":\"bOb_invite_to_room_1860@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:31:50 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,48983}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_to_room_1860@localhost\",\"recipient\":\"bOb_invite_to_room_1860@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/wonderland/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:31:50.251 ***
bOb_invite_to_room_1860@localhost/res1 in
<message from='1643-128310-193559@muclight.localhost' to='bob_invite_to_room_1860@localhost' id='38a1bb26-08c9-43aa-b0ff-b59baed9e33c' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-128310-247266</version>
		<user affiliation='member'>bob_invite_to_room_1860@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.251 ***
alicE_invite_to_room_1860@localhost/res1 in
<message from='1643-128310-193559@muclight.localhost' to='alice_invite_to_room_1860@localhost' id='38a1bb26-08c9-43aa-b0ff-b59baed9e33c' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-128310-193546</prev-version>
		<version>1643-128310-247266</version>
		<user affiliation='member'>bob_invite_to_room_1860@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.251 ***
kate_invite_to_room_1860@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.251 ***
kate_invite_to_room_1860@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:31:50.251 ***
bOb_invite_to_room_1860@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.252 ***
bOb_invite_to_room_1860@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:31:50.252 ***
alicE_invite_to_room_1860@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.252 ***
alicE_invite_to_room_1860@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:31:50.254 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2339.html
*** CT 2022-01-25 16:31:50.255 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5399.html



=== Ended at 2022-01-25 16:31:50
=== successfully completed test case
=== === Returned value: ok