=== Test case: muc_light_http_api_SUITE:delete_non_existent_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2817.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.34/muc_light_http_api_suite.delete_non_existent_room.14084.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.34/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@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:33:35
*** User 2022-01-27 15:33:35.040 ***
alicE_delete_non_existent_room_1010@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-27 15:33:35.041 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='106ff729781a99d6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_non_existent_room_1010@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-27 15:33:35.041 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV8xMDEwAG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_non_existent_room_1010@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-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27188979489f27e9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@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-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='26a3432c693ff5ea455c94e1235bc113'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<iq id='26a3432c693ff5ea455c94e1235bc113' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_non_existent_room_1010@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='85398e04f4654ea65901c42c361d11ab'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<iq type='result' id='85398e04f4654ea65901c42c361d11ab'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.043 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<presence from='alicE_delete_non_existent_room_1010@localhost/res1' to='alice_delete_non_existent_room_1010@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.043 ***
bOb_delete_non_existent_room_1010@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-27 15:33:35.044 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='084f632801fbcb00' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_non_existent_room_1010@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-27 15:33:35.044 ***
bOb_delete_non_existent_room_1010@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fMTAxMABtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_non_existent_room_1010@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-27 15:33:35.045 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d85a95308dcf98fe' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_non_existent_room_1010@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-27 15:33:35.045 ***
bOb_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='a517135ff20f14e4258f72cd1ad651fe'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<iq id='a517135ff20f14e4258f72cd1ad651fe' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_non_existent_room_1010@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='66ed1efe8c99af2442d1e66d2198e4fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.046 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<iq type='result' id='66ed1efe8c99af2442d1e66d2198e4fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.046 ***
bOb_delete_non_existent_room_1010@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.047 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<presence from='bOb_delete_non_existent_room_1010@localhost/res1' to='bob_delete_non_existent_room_1010@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.047 ***
kate_delete_non_existent_room_1010@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-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='79ffb7e3bf800e4e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@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-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzEwMTAAbWFrcm93ZTtw</auth>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@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-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cbd12edb835abe3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_non_existent_room_1010@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-27 15:33:35.049 ***
kate_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='37a633f48949e3a5d3c90b9592029aed'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<iq id='37a633f48949e3a5d3c90b9592029aed' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_non_existent_room_1010@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='ec445f5fc8ce07b3d70bf979738458ea'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<iq type='result' id='ec445f5fc8ce07b3d70bf979738458ea'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_non_existent_room_1010@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.050 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<presence from='kate_delete_non_existent_room_1010@localhost/res1' to='kate_delete_non_existent_room_1010@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.050 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
<iq type='set' id='827c86f380bcddfd0d3d919f9a9759a4' to='muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_delete_non_existent_room_1010@localhost</user>
<user affiliation='member'>kate_delete_non_existent_room_1010@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:33:35.051 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<message from='1643-297615-50815@muclight.localhost' to='alice_delete_non_existent_room_1010@localhost' id='827c86f380bcddfd0d3d919f9a9759a4' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297615-50789</version>
<user affiliation='owner'>alice_delete_non_existent_room_1010@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:35.051 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
<iq from='muclight.localhost' to='alicE_delete_non_existent_room_1010@localhost/res1' id='827c86f380bcddfd0d3d919f9a9759a4' type='result'/>
*** User 2022-01-27 15:33:35.051 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
<message from='1643-297615-50815@muclight.localhost' to='bob_delete_non_existent_room_1010@localhost' id='827c86f380bcddfd0d3d919f9a9759a4' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297615-50789</version>
<user affiliation='member'>bob_delete_non_existent_room_1010@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:35.051 ***
kate_delete_non_existent_room_1010@localhost/res1 in
<message from='1643-297615-50815@muclight.localhost' to='kate_delete_non_existent_room_1010@localhost' id='827c86f380bcddfd0d3d919f9a9759a4' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297615-50789</version>
<user affiliation='member'>kate_delete_non_existent_room_1010@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:35.053 ***
REST request fails:
Code: 404
Req: {<0.2887.1>,
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1010@localhost/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"674ad0c697d67a2b">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,606}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1010@localhost/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:35.053 ***
kate_delete_non_existent_room_1010@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
kate_delete_non_existent_room_1010@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
bOb_delete_non_existent_room_1010@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.054 ***
bOb_delete_non_existent_room_1010@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:35.054 ***
alicE_delete_non_existent_room_1010@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.054 ***
alicE_delete_non_existent_room_1010@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:35
=== successfully completed test case
=== === Returned value: ok