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

=== Config value:

    [{watchdog,<0.22953.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/muc_light_http_api_suite.delete_room_by_owner.141442.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/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@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:24:21


*** CT 2022-03-04 11:24:21.808 *** View log from node mongooseim@localhost when started mongooseim@localhost_2343.html
*** CT 2022-03-04 11:24:21.809 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_606.html

*** User 2022-03-04 11:24:21.822 ***
alicE_delete_room_by_owner_1714@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-03-04 11:24:21.823 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='606a76f18ac2af2e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.823 ***
alicE_delete_room_by_owner_1714@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-03-04 11:24:21.823 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX2J5X293bmVyXzE3MTQAbWF0eWdyeXNh</auth>



*** User 2022-03-04 11:24:21.823 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@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-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='693ea0763e5a03d8' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@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-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='b095ac6bdda51794baef7702897da2b4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<iq id='b095ac6bdda51794baef7702897da2b4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_delete_room_by_owner_1714@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.824 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='3c14cc9c4fd2b929684ba8d35404e70f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.825 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<iq type='result' id='3c14cc9c4fd2b929684ba8d35404e70f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.825 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:21.831 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<presence from='alicE_delete_room_by_owner_1714@domain.example.com/res1' to='alice_delete_room_by_owner_1714@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:21.832 ***
bOb_delete_room_by_owner_1714@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-03-04 11:24:21.832 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8776e13687367fc1' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.832 ***
bOb_delete_room_by_owner_1714@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-03-04 11:24:21.832 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV9ieV9vd25lcl8xNzE0AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@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-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='767f35a89932af49' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@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-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='a5ee482734575a9438e6b6524c92a3eb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.834 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<iq id='a5ee482734575a9438e6b6524c92a3eb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_delete_room_by_owner_1714@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.835 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='54663f83046fe54d546481f287aebc6b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.835 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<iq type='result' id='54663f83046fe54d546481f287aebc6b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.835 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:21.836 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<presence from='bOb_delete_room_by_owner_1714@domain.example.com/res1' to='bob_delete_room_by_owner_1714@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:21.837 ***
kate_delete_room_by_owner_1714@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-03-04 11:24:21.837 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0d72299055b51355' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.837 ***
kate_delete_room_by_owner_1714@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-03-04 11:24:21.837 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fYnlfb3duZXJfMTcxNABtYWtyb3dlO3A=</auth>



*** User 2022-03-04 11:24:21.838 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@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-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3d4f352742cf2c2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@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-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='3619ed9d673634415991e205b497601d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<iq id='3619ed9d673634415991e205b497601d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_delete_room_by_owner_1714@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='cd3777b4fbfbddbb28d1cba9fccd6882'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<iq type='result' id='cd3777b4fbfbddbb28d1cba9fccd6882'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:21.839 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:21.845 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<presence from='kate_delete_room_by_owner_1714@domain.example.com/res1' to='kate_delete_room_by_owner_1714@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:21.845 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
<iq type='set' id='6dee551ce99ff024c4c7989060e4f964' to='delete_room_by_owner@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_1714@domain.example.com</user>
			<user affiliation='member'>kate_delete_room_by_owner_1714@domain.example.com</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-04 11:24:21.855 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<message from='delete_room_by_owner@muclight2.domain.example.com' to='alice_delete_room_by_owner_1714@domain.example.com' id='6dee551ce99ff024c4c7989060e4f964' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393061-849344</version>
		<user affiliation='owner'>alice_delete_room_by_owner_1714@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:21.856 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
<iq from='delete_room_by_owner@muclight2.domain.example.com' to='alicE_delete_room_by_owner_1714@domain.example.com/res1' id='6dee551ce99ff024c4c7989060e4f964' type='result'/>



*** User 2022-03-04 11:24:21.856 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
<message from='delete_room_by_owner@muclight2.domain.example.com' to='bob_delete_room_by_owner_1714@domain.example.com' id='6dee551ce99ff024c4c7989060e4f964' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393061-849344</version>
		<user affiliation='member'>bob_delete_room_by_owner_1714@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:21.856 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
<message from='delete_room_by_owner@muclight2.domain.example.com' to='kate_delete_room_by_owner_1714@domain.example.com' id='6dee551ce99ff024c4c7989060e4f964' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393061-849344</version>
		<user affiliation='member'>kate_delete_room_by_owner_1714@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:21.866 ***
REST request:
Code: 204
Req: {<0.23049.1>,
      <<"/api/muc-lights/muclight2.domain.example.com/delete_room_by_owner/alicE_delete_room_by_owner_1714@domain.example.com/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4ae455af86627083">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:24:20 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,9846}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight2.domain.example.com/delete_room_by_owner/alicE_delete_room_by_owner_1714@domain.example.com/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:24:21.867 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:21.867 ***
kate_delete_room_by_owner_1714@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:24:21.867 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:21.867 ***
bOb_delete_room_by_owner_1714@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:24:21.867 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:21.867 ***
alicE_delete_room_by_owner_1714@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:24:21.869 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_606.html
*** CT 2022-03-04 11:24:21.870 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2344.html



=== Ended at 2022-03-04 11:24:21
=== successfully completed test case
=== === Returned value: ok