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

=== Config value:

    [{watchdog,<0.2893.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/muc_light_http_api_suite.delete_non_existent_room.20228.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/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@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:36:06


*** CT 2022-03-03 10:36:06.912 *** View log from node mongooseim@localhost when started mongooseim@localhost_4495.html
*** CT 2022-03-03 10:36:06.913 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2305.html

*** User 2022-03-03 10:36:06.926 ***
alicE_delete_non_existent_room_954@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-03 10:36:06.926 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cff7ed917f9529c8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.926 ***
alicE_delete_non_existent_room_954@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>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-03 10:36:06.926 ***
alicE_delete_non_existent_room_954@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV85NTQAbWF0eWdyeXNh</auth>



*** User 2022-03-03 10:36:06.927 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:06.927 ***
alicE_delete_non_existent_room_954@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-03 10:36:06.927 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd93d662d2210d22' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.927 ***
alicE_delete_non_existent_room_954@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-03 10:36:06.928 ***
alicE_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='74840188c0546f1340dbf3265def31ab'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.928 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<iq id='74840188c0546f1340dbf3265def31ab' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_delete_non_existent_room_954@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.928 ***
alicE_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='4794f083935fc74c3e48281836527dfd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.928 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<iq type='result' id='4794f083935fc74c3e48281836527dfd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.928 ***
alicE_delete_non_existent_room_954@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:06.929 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<presence from='alicE_delete_non_existent_room_954@localhost/res1' to='alice_delete_non_existent_room_954@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:06.929 ***
bOb_delete_non_existent_room_954@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-03 10:36:06.930 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8330d84bb52abda9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.930 ***
bOb_delete_non_existent_room_954@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>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-03 10:36:06.930 ***
bOb_delete_non_existent_room_954@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fOTU0AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-03 10:36:06.931 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:06.931 ***
bOb_delete_non_existent_room_954@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-03 10:36:06.931 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='57187934ff05fe34' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@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-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='56cc38bf63ae133ca96e4fb423394b82'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<iq id='56cc38bf63ae133ca96e4fb423394b82' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_delete_non_existent_room_954@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='40e70c62c81484ff0a1de818bb99a817'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<iq type='result' id='40e70c62c81484ff0a1de818bb99a817'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.932 ***
bOb_delete_non_existent_room_954@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:06.933 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<presence from='bOb_delete_non_existent_room_954@localhost/res1' to='bob_delete_non_existent_room_954@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:06.933 ***
kate_delete_non_existent_room_954@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-03 10:36:06.934 ***
kate_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df5cbd5c6e164a6a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.934 ***
kate_delete_non_existent_room_954@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>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-03 10:36:06.934 ***
kate_delete_non_existent_room_954@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzk1NABtYWtyb3dlO3A=</auth>



*** User 2022-03-03 10:36:06.935 ***
kate_delete_non_existent_room_954@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:06.935 ***
kate_delete_non_existent_room_954@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-03 10:36:06.935 ***
kate_delete_non_existent_room_954@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd8635d3d71a72fc' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:06.935 ***
kate_delete_non_existent_room_954@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-03 10:36:06.936 ***
kate_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='3c3d83a16ef7c50e759c569a45d8d8cb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.936 ***
kate_delete_non_existent_room_954@localhost/res1 in
<iq id='3c3d83a16ef7c50e759c569a45d8d8cb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_delete_non_existent_room_954@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:06.936 ***
kate_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='84e18e5f42a61a38374288a451684377'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.936 ***
kate_delete_non_existent_room_954@localhost/res1 in
<iq type='result' id='84e18e5f42a61a38374288a451684377'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:06.936 ***
kate_delete_non_existent_room_954@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:06.937 ***
kate_delete_non_existent_room_954@localhost/res1 in
<presence from='kate_delete_non_existent_room_954@localhost/res1' to='kate_delete_non_existent_room_954@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:06.937 ***
alicE_delete_non_existent_room_954@localhost/res1 out
<iq type='set' id='d0fba5afe76ac8774b2ae887c009d5b3' 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_954@localhost</user>
			<user affiliation='member'>kate_delete_non_existent_room_954@localhost</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-03 10:36:06.938 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='alice_delete_non_existent_room_954@localhost' id='d0fba5afe76ac8774b2ae887c009d5b3' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303766-937776</version>
		<user affiliation='owner'>alice_delete_non_existent_room_954@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-03 10:36:06.938 ***
alicE_delete_non_existent_room_954@localhost/res1 in
<iq from='delete_non_existent_room@muclight.localhost' to='alicE_delete_non_existent_room_954@localhost/res1' id='d0fba5afe76ac8774b2ae887c009d5b3' type='result'/>



*** User 2022-03-03 10:36:06.938 ***
bOb_delete_non_existent_room_954@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='bob_delete_non_existent_room_954@localhost' id='d0fba5afe76ac8774b2ae887c009d5b3' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303766-937776</version>
		<user affiliation='member'>bob_delete_non_existent_room_954@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-03 10:36:06.938 ***
kate_delete_non_existent_room_954@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='kate_delete_non_existent_room_954@localhost' id='d0fba5afe76ac8774b2ae887c009d5b3' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303766-937776</version>
		<user affiliation='member'>kate_delete_non_existent_room_954@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-03 10:36:06.940 ***
REST request fails:
Code: 404
Req: {<0.2979.1>,
      <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_954@localhost/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c7c97c256690f84b">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:36:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Cannot remove not existing room">>,162,937}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_954@localhost/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:36:06.940 ***
kate_delete_non_existent_room_954@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:06.940 ***
kate_delete_non_existent_room_954@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:36:06.940 ***
bOb_delete_non_existent_room_954@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:06.941 ***
bOb_delete_non_existent_room_954@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:36:06.941 ***
alicE_delete_non_existent_room_954@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:06.941 ***
alicE_delete_non_existent_room_954@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:36:06.942 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2305.html
*** CT 2022-03-03 10:36:06.943 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4495.html



=== Ended at 2022-03-03 10:36:06
=== successfully completed test case
=== === Returned value: ok