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

=== Config value:

    [{watchdog,<0.30895.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@b90e3713176e.2022-03-07_09.29.55/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-07_09.39.10/muc_light_http_api_suite.invite_to_room.98947.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@b90e3713176e.2022-03-07_09.29.55/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-07_09.39.10/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@b90e3713176e.2022-03-07_09.29.55"

=== Started at 2022-03-07 09:39:10


*** CT 2022-03-07 09:39:10.937 *** View log from node mongooseim@localhost when started mongooseim@localhost_4532.html
*** CT 2022-03-07 09:39:10.937 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2195.html

*** User 2022-03-07 09:39:10.955 ***
alicE_invite_to_room_1726@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 09:39:10.956 ***
alicE_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49a1bb5ca35bfd49' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:10.956 ***
alicE_invite_to_room_1726@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 09:39:10.956 ***
alicE_invite_to_room_1726@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV90b19yb29tXzE3MjYAbWF0eWdyeXNh</auth>



*** User 2022-03-07 09:39:10.957 ***
alicE_invite_to_room_1726@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 09:39:10.957 ***
alicE_invite_to_room_1726@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 09:39:10.963 ***
alicE_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0f5bdc8659571f9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:10.963 ***
alicE_invite_to_room_1726@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 09:39:10.963 ***
alicE_invite_to_room_1726@localhost/res1 out
<iq type='set' id='6019ee876cb906a23251ae71cc986319'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 09:39:10.963 ***
alicE_invite_to_room_1726@localhost/res1 in
<iq id='6019ee876cb906a23251ae71cc986319' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_invite_to_room_1726@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 09:39:10.964 ***
alicE_invite_to_room_1726@localhost/res1 out
<iq type='set' id='7e26c7783e0591b5fb730ff45625c420'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:10.968 ***
alicE_invite_to_room_1726@localhost/res1 in
<iq type='result' id='7e26c7783e0591b5fb730ff45625c420'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:10.968 ***
alicE_invite_to_room_1726@localhost/res1 out
<presence/>



*** User 2022-03-07 09:39:10.975 ***
alicE_invite_to_room_1726@localhost/res1 in
<presence from='alicE_invite_to_room_1726@localhost/res1' to='alice_invite_to_room_1726@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 09:39:10.981 ***
bOb_invite_to_room_1726@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 09:39:10.987 ***
bOb_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbdaaaaa3b0ac81c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:10.987 ***
bOb_invite_to_room_1726@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 09:39:10.987 ***
bOb_invite_to_room_1726@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfdG9fcm9vbV8xNzI2AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-07 09:39:10.991 ***
bOb_invite_to_room_1726@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 09:39:10.992 ***
bOb_invite_to_room_1726@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 09:39:10.995 ***
bOb_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bec51f3d7d4faaa' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:10.995 ***
bOb_invite_to_room_1726@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 09:39:10.995 ***
bOb_invite_to_room_1726@localhost/res1 out
<iq type='set' id='d9967596c1c0c40ba569b4c72869d9a9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 09:39:10.996 ***
bOb_invite_to_room_1726@localhost/res1 in
<iq id='d9967596c1c0c40ba569b4c72869d9a9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_invite_to_room_1726@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 09:39:10.996 ***
bOb_invite_to_room_1726@localhost/res1 out
<iq type='set' id='79aa830e0e69a5537a72ee5a16ce75af'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:10.996 ***
bOb_invite_to_room_1726@localhost/res1 in
<iq type='result' id='79aa830e0e69a5537a72ee5a16ce75af'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:10.997 ***
bOb_invite_to_room_1726@localhost/res1 out
<presence/>



*** User 2022-03-07 09:39:11.005 ***
bOb_invite_to_room_1726@localhost/res1 in
<presence from='bOb_invite_to_room_1726@localhost/res1' to='bob_invite_to_room_1726@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 09:39:11.006 ***
kate_invite_to_room_1726@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 09:39:11.010 ***
kate_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ccbfdfa536b6bb4d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:11.010 ***
kate_invite_to_room_1726@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 09:39:11.010 ***
kate_invite_to_room_1726@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfaW52aXRlX3RvX3Jvb21fMTcyNgBtYWtyb3dlO3A=</auth>



*** User 2022-03-07 09:39:11.012 ***
kate_invite_to_room_1726@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 09:39:11.012 ***
kate_invite_to_room_1726@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 09:39:11.019 ***
kate_invite_to_room_1726@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e0fdd7854f1e473' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 09:39:11.019 ***
kate_invite_to_room_1726@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 09:39:11.019 ***
kate_invite_to_room_1726@localhost/res1 out
<iq type='set' id='de42c08204ddf012bf2655fa7ed2a183'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 09:39:11.020 ***
kate_invite_to_room_1726@localhost/res1 in
<iq id='de42c08204ddf012bf2655fa7ed2a183' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_invite_to_room_1726@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 09:39:11.020 ***
kate_invite_to_room_1726@localhost/res1 out
<iq type='set' id='b4cb0589fd1e956a88e2db59139024dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:11.020 ***
kate_invite_to_room_1726@localhost/res1 in
<iq type='result' id='b4cb0589fd1e956a88e2db59139024dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 09:39:11.020 ***
kate_invite_to_room_1726@localhost/res1 out
<presence/>



*** User 2022-03-07 09:39:11.024 ***
kate_invite_to_room_1726@localhost/res1 in
<presence from='kate_invite_to_room_1726@localhost/res1' to='kate_invite_to_room_1726@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 09:39:11.024 ***
alicE_invite_to_room_1726@localhost/res1 out
<iq type='set' id='d8e8f19390c91cb73df6b12aece56d47' to='invite_to_room@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>kate_invite_to_room_1726@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-07 09:39:11.028 ***
alicE_invite_to_room_1726@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1726@localhost' id='d8e8f19390c91cb73df6b12aece56d47' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-645951-25326</version>
		<user affiliation='owner'>alice_invite_to_room_1726@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.028 ***
alicE_invite_to_room_1726@localhost/res1 in
<iq from='invite_to_room@muclight.localhost' to='alicE_invite_to_room_1726@localhost/res1' id='d8e8f19390c91cb73df6b12aece56d47' type='result'/>



*** User 2022-03-07 09:39:11.036 ***
REST request:
Code: 204
Req: {<0.30980.1>,
      <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7cdf515f372f0bb7">>}],
      <<"{\"sender\":\"alicE_invite_to_room_1726@localhost\",\"recipient\":\"bOb_invite_to_room_1726@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 09:39:10 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6788}
Params: #{body =>
              <<"{\"sender\":\"alicE_invite_to_room_1726@localhost\",\"recipient\":\"bOb_invite_to_room_1726@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/invite_to_room/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 09:39:11.036 ***
bOb_invite_to_room_1726@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='bob_invite_to_room_1726@localhost' id='bb4681d7-4908-4274-807d-05df6fa02d0f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-645951-34569</version>
		<user affiliation='member'>bob_invite_to_room_1726@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.036 ***
alicE_invite_to_room_1726@localhost/res1 in
<message from='invite_to_room@muclight.localhost' to='alice_invite_to_room_1726@localhost' id='bb4681d7-4908-4274-807d-05df6fa02d0f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-645951-25326</prev-version>
		<version>1646-645951-34569</version>
		<user affiliation='member'>bob_invite_to_room_1726@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.036 ***
kate_invite_to_room_1726@localhost/res1 out
</stream:stream>

*** User 2022-03-07 09:39:11.037 ***
kate_invite_to_room_1726@localhost/res1 in
</stream:stream>

*** User 2022-03-07 09:39:11.037 ***
bOb_invite_to_room_1726@localhost/res1 out
</stream:stream>

*** User 2022-03-07 09:39:11.039 ***
bOb_invite_to_room_1726@localhost/res1 in
</stream:stream>

*** User 2022-03-07 09:39:11.039 ***
alicE_invite_to_room_1726@localhost/res1 out
</stream:stream>

*** User 2022-03-07 09:39:11.039 ***
alicE_invite_to_room_1726@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 09:39:11.042 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2195.html
*** CT 2022-03-07 09:39:11.043 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4533.html



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