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

=== Config value:

    [{watchdog,<0.23067.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_non_existent_room.63620.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@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.977 *** View log from node mongooseim@localhost when started mongooseim@localhost_2344.html
*** CT 2022-03-04 11:24:21.978 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_606.html

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

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



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



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

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



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



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



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



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



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



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

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



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



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

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



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



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



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



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



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



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

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



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



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

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



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



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



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



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



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



*** User 2022-03-04 11:24:22.014 ***
alicE_delete_non_existent_room_1715@domain.example.com/res1 out
<iq type='set' id='9b1c120b2517325d0e72a2a7b7feccfd' to='delete_non_existent_room@muclight2.domain.example.com'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>bob_delete_non_existent_room_1715@domain.example.com</user>
			<user affiliation='member'>kate_delete_non_existent_room_1715@domain.example.com</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-04 11:24:22.027 ***
alicE_delete_non_existent_room_1715@domain.example.com/res1 in
<message from='delete_non_existent_room@muclight2.domain.example.com' to='alice_delete_non_existent_room_1715@domain.example.com' id='9b1c120b2517325d0e72a2a7b7feccfd' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393062-15811</version>
		<user affiliation='owner'>alice_delete_non_existent_room_1715@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:22.027 ***
alicE_delete_non_existent_room_1715@domain.example.com/res1 in
<iq from='delete_non_existent_room@muclight2.domain.example.com' to='alicE_delete_non_existent_room_1715@domain.example.com/res1' id='9b1c120b2517325d0e72a2a7b7feccfd' type='result'/>



*** User 2022-03-04 11:24:22.027 ***
bOb_delete_non_existent_room_1715@domain.example.com/res1 in
<message from='delete_non_existent_room@muclight2.domain.example.com' to='bob_delete_non_existent_room_1715@domain.example.com' id='9b1c120b2517325d0e72a2a7b7feccfd' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393062-15811</version>
		<user affiliation='member'>bob_delete_non_existent_room_1715@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:22.027 ***
kate_delete_non_existent_room_1715@domain.example.com/res1 in
<message from='delete_non_existent_room@muclight2.domain.example.com' to='kate_delete_non_existent_room_1715@domain.example.com' id='9b1c120b2517325d0e72a2a7b7feccfd' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393062-15811</version>
		<user affiliation='member'>kate_delete_non_existent_room_1715@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:22.029 ***
REST request fails:
Code: 404
Req: {<0.23159.1>,
      <<"/api/muc-lights/muclight2.domain.example.com/some_non_existent_room/alicE_delete_non_existent_room_1715@domain.example.com/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ae6ed934da3479a">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:24:21 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"31">>}],
         <<"Cannot remove not existing room">>,162,1136}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight2.domain.example.com/some_non_existent_room/alicE_delete_non_existent_room_1715@domain.example.com/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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

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

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

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

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

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



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