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

=== Config value:

    [{watchdog,<0.31009.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.delete_non_existent_room.125570.html"},
     {tc_group_properties,[{name,negative},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:11


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

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

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



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



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

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



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



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



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



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



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



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

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



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



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

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



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



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



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



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



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



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

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



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



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

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



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



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



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



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



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



*** User 2022-03-07 09:39:11.232 ***
alicE_delete_non_existent_room_1731@localhost/res1 out
<iq type='set' id='1f4a05f20a6971f7bf07892f576c4d70' to='delete_non_existent_room@muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>bob_delete_non_existent_room_1731@localhost</user>
			<user affiliation='member'>kate_delete_non_existent_room_1731@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-07 09:39:11.236 ***
alicE_delete_non_existent_room_1731@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='alice_delete_non_existent_room_1731@localhost' id='1f4a05f20a6971f7bf07892f576c4d70' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-645951-234139</version>
		<user affiliation='owner'>alice_delete_non_existent_room_1731@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.237 ***
alicE_delete_non_existent_room_1731@localhost/res1 in
<iq from='delete_non_existent_room@muclight.localhost' to='alicE_delete_non_existent_room_1731@localhost/res1' id='1f4a05f20a6971f7bf07892f576c4d70' type='result'/>



*** User 2022-03-07 09:39:11.237 ***
bOb_delete_non_existent_room_1731@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='bob_delete_non_existent_room_1731@localhost' id='1f4a05f20a6971f7bf07892f576c4d70' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-645951-234139</version>
		<user affiliation='member'>bob_delete_non_existent_room_1731@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.237 ***
kate_delete_non_existent_room_1731@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='kate_delete_non_existent_room_1731@localhost' id='1f4a05f20a6971f7bf07892f576c4d70' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-645951-234139</version>
		<user affiliation='member'>kate_delete_non_existent_room_1731@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 09:39:11.239 ***
REST request fails:
Code: 404
Req: {<0.31098.1>,
      <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1731@localhost/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2516a1ee1ceb0fdf">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 09:39:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Cannot remove not existing room">>,162,1261}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1731@localhost/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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

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

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

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

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

*** User 2022-03-07 09:39:11.240 ***
alicE_delete_non_existent_room_1731@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 09:39:11.246 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2195.html
*** CT 2022-03-07 09:39:11.247 *** 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