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

=== Config value:

    [{watchdog,<0.28533.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-25_16.31.49/muc_light_http_api_suite.delete_non_existent_room.122242.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-25_16.31.49/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:31:50


*** CT 2022-01-25 16:31:50.371 *** View log from node mongooseim@localhost when started mongooseim@localhost_5399.html
*** CT 2022-01-25 16:31:50.372 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2339.html

*** User 2022-01-25 16:31:50.404 ***
alicE_delete_non_existent_room_1863@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-01-25 16:31:50.405 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9681effd98fcdc0' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.405 ***
alicE_delete_non_existent_room_1863@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-01-25 16:31:50.405 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV8xODYzAG1hdHlncnlzYQ==</auth>



*** User 2022-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@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-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3b4a0d7ce8c5ad3' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@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-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='8ac6f236cfaf256ef7ec54052887b342'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.406 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<iq id='8ac6f236cfaf256ef7ec54052887b342' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_delete_non_existent_room_1863@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.407 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='f7cbf9244d1b13c7dcf86cea6f80d031'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.407 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<iq type='result' id='f7cbf9244d1b13c7dcf86cea6f80d031'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.407 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.413 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<presence from='alicE_delete_non_existent_room_1863@localhost/res1' to='alice_delete_non_existent_room_1863@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.413 ***
bOb_delete_non_existent_room_1863@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-01-25 16:31:50.414 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de42bd3330eb8bf2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.414 ***
bOb_delete_non_existent_room_1863@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-01-25 16:31:50.414 ***
bOb_delete_non_existent_room_1863@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fMTg2MwBtYWtyb2xpa2E=</auth>



*** User 2022-01-25 16:31:50.415 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.415 ***
bOb_delete_non_existent_room_1863@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-01-25 16:31:50.415 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5ab2687b1a286d4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.415 ***
bOb_delete_non_existent_room_1863@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-01-25 16:31:50.415 ***
bOb_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='5dcda97f0f71b66b26a8aa1277ae591c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.416 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<iq id='5dcda97f0f71b66b26a8aa1277ae591c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_delete_non_existent_room_1863@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.416 ***
bOb_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='0460240fdf890b40934ee4f74ddf60d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.416 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<iq type='result' id='0460240fdf890b40934ee4f74ddf60d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.416 ***
bOb_delete_non_existent_room_1863@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.418 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<presence from='bOb_delete_non_existent_room_1863@localhost/res1' to='bob_delete_non_existent_room_1863@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.419 ***
kate_delete_non_existent_room_1863@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-01-25 16:31:50.420 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da33f88000162d75' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.420 ***
kate_delete_non_existent_room_1863@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-01-25 16:31:50.420 ***
kate_delete_non_existent_room_1863@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzE4NjMAbWFrcm93ZTtw</auth>



*** User 2022-01-25 16:31:50.422 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:31:50.422 ***
kate_delete_non_existent_room_1863@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-01-25 16:31:50.422 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f85eef4797e4cd31' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:31:50.422 ***
kate_delete_non_existent_room_1863@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-01-25 16:31:50.422 ***
kate_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='59ceab042e4a0aba06ee6d31b225b69a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.423 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<iq id='59ceab042e4a0aba06ee6d31b225b69a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_delete_non_existent_room_1863@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:31:50.423 ***
kate_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='dc4b33ce3ecb980b7c24326f10253c64'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.423 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<iq type='result' id='dc4b33ce3ecb980b7c24326f10253c64'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:31:50.423 ***
kate_delete_non_existent_room_1863@localhost/res1 out
<presence/>



*** User 2022-01-25 16:31:50.428 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<presence from='kate_delete_non_existent_room_1863@localhost/res1' to='kate_delete_non_existent_room_1863@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:31:50.428 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
<iq type='set' id='1e7ccb63b7efbdd54ed2a30e8c3592d6' to='muclight.localhost'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>bob_delete_non_existent_room_1863@localhost</user>
			<user affiliation='member'>kate_delete_non_existent_room_1863@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-01-25 16:31:50.447 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<message from='1643-128310-434320@muclight.localhost' to='alice_delete_non_existent_room_1863@localhost' id='1e7ccb63b7efbdd54ed2a30e8c3592d6' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-128310-434307</version>
		<user affiliation='owner'>alice_delete_non_existent_room_1863@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.447 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
<iq from='muclight.localhost' to='alicE_delete_non_existent_room_1863@localhost/res1' id='1e7ccb63b7efbdd54ed2a30e8c3592d6' type='result'/>



*** User 2022-01-25 16:31:50.447 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
<message from='1643-128310-434320@muclight.localhost' to='bob_delete_non_existent_room_1863@localhost' id='1e7ccb63b7efbdd54ed2a30e8c3592d6' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-128310-434307</version>
		<user affiliation='member'>bob_delete_non_existent_room_1863@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.447 ***
kate_delete_non_existent_room_1863@localhost/res1 in
<message from='1643-128310-434320@muclight.localhost' to='kate_delete_non_existent_room_1863@localhost' id='1e7ccb63b7efbdd54ed2a30e8c3592d6' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-128310-434307</version>
		<user affiliation='member'>kate_delete_non_existent_room_1863@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-25 16:31:50.452 ***
REST request fails:
Code: 404
Req: {<0.28608.1>,
      <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1863@localhost/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"857cbd4f2abad0ff">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 25 Jan 2022 16:31:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"19">>}],
         <<"room does not exist">>,150,2761}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1863@localhost/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-25 16:31:50.452 ***
kate_delete_non_existent_room_1863@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.452 ***
kate_delete_non_existent_room_1863@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:31:50.452 ***
bOb_delete_non_existent_room_1863@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.453 ***
bOb_delete_non_existent_room_1863@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:31:50.453 ***
alicE_delete_non_existent_room_1863@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:31:50.453 ***
alicE_delete_non_existent_room_1863@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:31:50.455 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2339.html
*** CT 2022-01-25 16:31:50.456 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5399.html



=== Ended at 2022-01-25 16:31:50
=== successfully completed test case
=== === Returned value: ok