=== Test case: muc_light_http_api_SUITE:delete_room_by_owner/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.delete_room_by_owner.100483.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.301 *** View log from node mongooseim@localhost when started mongooseim@localhost_2282.html
*** CT 2022-01-27 12:35:40.301 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_617.html

*** User 2022-01-27 12:35:40.340 ***
alicE_delete_room_by_owner_1653@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.340 ***
alicE_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb986fefc61cb6c1' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 12:35:40.350 ***
alicE_delete_room_by_owner_1653@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.351 ***
alicE_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de8bb16bf9313266' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



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



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



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



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



*** User 2022-01-27 12:35:40.354 ***
bOb_delete_room_by_owner_1653@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_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9482d3cd8c60caea' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 12:35:40.356 ***
bOb_delete_room_by_owner_1653@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.356 ***
bOb_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ca7ba590a5040cdb' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



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



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



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



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



*** User 2022-01-27 12:35:40.360 ***
kate_delete_room_by_owner_1653@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_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b20d4a1f8a879c5c' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 12:35:40.366 ***
kate_delete_room_by_owner_1653@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.366 ***
kate_delete_room_by_owner_1653@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ca41b3f81b91ca17' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



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



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



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



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



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



*** User 2022-01-27 12:35:40.376 ***
alicE_delete_room_by_owner_1653@domain.example.com/res1 in
<message from='1643-286940-371569@muclight2.domain.example.com' to='alice_delete_room_by_owner_1653@domain.example.com' id='d731c3b1daeeb8e5b9dbd3e70c877108' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-286940-371556</version>
		<user affiliation='owner'>alice_delete_room_by_owner_1653@domain.example.com</user>
	</x>
	<body/>
</message>



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



*** User 2022-01-27 12:35:40.376 ***
bOb_delete_room_by_owner_1653@domain.example.com/res1 in
<message from='1643-286940-371569@muclight2.domain.example.com' to='bob_delete_room_by_owner_1653@domain.example.com' id='d731c3b1daeeb8e5b9dbd3e70c877108' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-286940-371556</version>
		<user affiliation='member'>bob_delete_room_by_owner_1653@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:35:40.376 ***
kate_delete_room_by_owner_1653@domain.example.com/res1 in
<message from='1643-286940-371569@muclight2.domain.example.com' to='kate_delete_room_by_owner_1653@domain.example.com' id='d731c3b1daeeb8e5b9dbd3e70c877108' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-286940-371556</version>
		<user affiliation='member'>kate_delete_room_by_owner_1653@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:35:40.391 ***
REST request:
Code: 204
Req: {<0.20909.1>,
      <<"/api/muc-lights/muclight2.domain.example.com/wonderland/alicE_delete_room_by_owner_1653@domain.example.com/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2198cfeb80adadea">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:35:40 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,13191}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight2.domain.example.com/wonderland/alicE_delete_room_by_owner_1653@domain.example.com/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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

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

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

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

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

*** User 2022-01-27 12:35:40.392 ***
alicE_delete_room_by_owner_1653@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:35:40.400 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_617.html
*** CT 2022-01-27 12:35:40.400 *** 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