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

=== Config value:

    [{watchdog,<0.20820.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/muc_light_http_api_suite.invite_to_room.115970.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:35:40


*** CT 2022-01-27 12:35:40.298 *** View log from node mongooseim@localhost when started mongooseim@localhost_2282.html
*** CT 2022-01-27 12:35:40.299 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_617.html

*** User 2022-01-27 12:35:40.337 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.337 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1716ebb7adc145ee' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.338 ***
alicE_invite_to_room_1652@domain.example.com/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 12:35:40.338 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE2NTIAbWF0eWdyeXNh</auth>



*** User 2022-01-27 12:35:40.339 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:35:40.339 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.339 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c608d15b73230a76' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.339 ***
alicE_invite_to_room_1652@domain.example.com/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 12:35:40.339 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='7bb26d436eb533039ea2b324740cf800'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.340 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<iq id='7bb26d436eb533039ea2b324740cf800' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invite_to_room_1652@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.340 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='4048a151d6b27d2c46fcf67965a62047'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.340 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<iq type='result' id='4048a151d6b27d2c46fcf67965a62047'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.340 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:35:40.352 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<presence from='alicE_invite_to_room_1652@domain.example.com/res1' to='alice_invite_to_room_1652@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:35:40.352 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.353 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7486dd79d5f8a32c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.353 ***
bOb_invite_to_room_1652@domain.example.com/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 12:35:40.353 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNjUyAG1ha3JvbGlrYQ==</auth>



*** User 2022-01-27 12:35:40.354 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:35:40.354 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.354 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e3da0c2d8de42916' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.354 ***
bOb_invite_to_room_1652@domain.example.com/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 12:35:40.355 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='1efe735358ccaa5b76c88a0af60ce6bc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.355 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<iq id='1efe735358ccaa5b76c88a0af60ce6bc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invite_to_room_1652@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.355 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='d6d74a454a51ba5d338a24d69fec6373'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.355 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<iq type='result' id='d6d74a454a51ba5d338a24d69fec6373'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.355 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:35:40.357 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<presence from='bOb_invite_to_room_1652@domain.example.com/res1' to='bob_invite_to_room_1652@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:35:40.358 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.358 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1664d377c49c7e41' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.358 ***
kate_invite_to_room_1652@domain.example.com/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 12:35:40.358 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTY1MgBtYWtyb3dlO3A=</auth>



*** User 2022-01-27 12:35:40.359 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:35:40.360 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:35:40.360 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cbfb7d7e29966147' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:35:40.360 ***
kate_invite_to_room_1652@domain.example.com/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 12:35:40.360 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='6a615a0c6704277b9bf192d4c31e1144'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.361 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<iq id='6a615a0c6704277b9bf192d4c31e1144' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1652@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:35:40.361 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='8caef5e4606b5eee76569a3eaafbc5d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.361 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<iq type='result' id='8caef5e4606b5eee76569a3eaafbc5d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:35:40.361 ***
kate_invite_to_room_1652@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:35:40.363 ***
kate_invite_to_room_1652@domain.example.com/res1 in
<presence from='kate_invite_to_room_1652@domain.example.com/res1' to='kate_invite_to_room_1652@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:35:40.363 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
<iq type='set' id='e51e510e59a870e3521ef01be4236b88' to='muclight2.domain.example.com'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>kate_invite_to_room_1652@domain.example.com</user>
		</occupants>
	</query>
</iq>



*** User 2022-01-27 12:35:40.369 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<message from='1643-286940-364883@muclight2.domain.example.com' to='alice_invite_to_room_1652@domain.example.com' id='e51e510e59a870e3521ef01be4236b88' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-286940-364870</version>
		<user affiliation='owner'>alice_invite_to_room_1652@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:35:40.369 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<iq from='muclight2.domain.example.com' to='alicE_invite_to_room_1652@domain.example.com/res1' id='e51e510e59a870e3521ef01be4236b88' type='result'/>



*** User 2022-01-27 12:35:40.380 ***
REST request:
Code: 204
Req: {<0.20907.1>,
      <<"/api/muc-lights/muclight2.domain.example.com/wonderland/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9e1ada4bc478dc79">>}],
      <<"{\"sender\":\"alicE_invite_to_room_1652@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1652@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:35:40 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10232}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_to_room_1652@domain.example.com\",\"recipient\":\"bOb_invite_to_room_1652@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/muc-lights/muclight2.domain.example.com/wonderland/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:35:40.380 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
<message from='1643-286940-364883@muclight2.domain.example.com' to='bob_invite_to_room_1652@domain.example.com' id='d1c973a5-b405-4039-8ca9-a9eb2d9c56ff' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-286940-376972</version>
		<user affiliation='member'>bob_invite_to_room_1652@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:35:40.381 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
<message from='1643-286940-364883@muclight2.domain.example.com' to='alice_invite_to_room_1652@domain.example.com' id='d1c973a5-b405-4039-8ca9-a9eb2d9c56ff' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-286940-364870</prev-version>
		<version>1643-286940-376972</version>
		<user affiliation='member'>bob_invite_to_room_1652@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:35:40.381 ***
kate_invite_to_room_1652@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:35:40.381 ***
kate_invite_to_room_1652@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:35:40.381 ***
bOb_invite_to_room_1652@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:35:40.381 ***
bOb_invite_to_room_1652@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:35:40.381 ***
alicE_invite_to_room_1652@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:35:40.382 ***
alicE_invite_to_room_1652@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:35:40.384 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_617.html
*** CT 2022-01-27 12:35:40.385 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2283.html



=== Ended at 2022-01-27 12:35:40
=== successfully completed test case
=== === Returned value: ok