=== Test case: muc_light_http_api_SUITE:delete_non_existent_room/1 (click for source code)
=== Config value:
[{watchdog,<0.29102.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/muc_light_http_api_suite.delete_non_existent_room.125826.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:34:18
*** User 2022-01-27 15:34:18.476 ***
alicE_delete_non_existent_room_1795@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:34:18.476 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20770b417cd804c2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.477 ***
alicE_delete_non_existent_room_1795@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:34:18.477 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV8xNzk1AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_non_existent_room_1795@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:34:18.478 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aaa27d73b85d290a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_non_existent_room_1795@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:34:18.478 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='36b4050a211d5fb22e344f450166bf5b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<iq id='36b4050a211d5fb22e344f450166bf5b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_non_existent_room_1795@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.479 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='0605c0d3fed9ff3697254819dcc3022a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.479 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<iq type='result' id='0605c0d3fed9ff3697254819dcc3022a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.479 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.480 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<presence from='alicE_delete_non_existent_room_1795@localhost/res1' to='alice_delete_non_existent_room_1795@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.481 ***
bOb_delete_non_existent_room_1795@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:34:18.481 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0765059b2cd0c0b2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.481 ***
bOb_delete_non_existent_room_1795@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:34:18.481 ***
bOb_delete_non_existent_room_1795@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fMTc5NQBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:34:18.482 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.482 ***
bOb_delete_non_existent_room_1795@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:34:18.482 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abf8ed93d7d23591' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_non_existent_room_1795@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:34:18.483 ***
bOb_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='a840d5929b712e06d6e7e2af56fe95db'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<iq id='a840d5929b712e06d6e7e2af56fe95db' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_non_existent_room_1795@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='0bcdb27dc10c65580655fe362926cf95'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<iq type='result' id='0bcdb27dc10c65580655fe362926cf95'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_non_existent_room_1795@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.488 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<presence from='bOb_delete_non_existent_room_1795@localhost/res1' to='bob_delete_non_existent_room_1795@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.489 ***
kate_delete_non_existent_room_1795@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:34:18.490 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76665e283cf21665' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.490 ***
kate_delete_non_existent_room_1795@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:34:18.490 ***
kate_delete_non_existent_room_1795@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzE3OTUAbWFrcm93ZTtw</auth>
*** User 2022-01-27 15:34:18.492 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.492 ***
kate_delete_non_existent_room_1795@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:34:18.492 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c071f2b2e9ec035' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.493 ***
kate_delete_non_existent_room_1795@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:34:18.493 ***
kate_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='639ae62419a3bec28593b571e64d46fd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.493 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<iq id='639ae62419a3bec28593b571e64d46fd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_non_existent_room_1795@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.493 ***
kate_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='74a347cb591f654c9425906be08899e3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.493 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<iq type='result' id='74a347cb591f654c9425906be08899e3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.493 ***
kate_delete_non_existent_room_1795@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.497 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<presence from='kate_delete_non_existent_room_1795@localhost/res1' to='kate_delete_non_existent_room_1795@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.497 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
<iq type='set' id='454cdbc3eff3f3b012f0a813cd898e25' to='muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_delete_non_existent_room_1795@localhost</user>
<user affiliation='member'>kate_delete_non_existent_room_1795@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:34:18.503 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<message from='1643-297658-499248@muclight.localhost' to='alice_delete_non_existent_room_1795@localhost' id='454cdbc3eff3f3b012f0a813cd898e25' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297658-499240</version>
<user affiliation='owner'>alice_delete_non_existent_room_1795@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:34:18.503 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
<iq from='muclight.localhost' to='alicE_delete_non_existent_room_1795@localhost/res1' id='454cdbc3eff3f3b012f0a813cd898e25' type='result'/>
*** User 2022-01-27 15:34:18.503 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
<message from='1643-297658-499248@muclight.localhost' to='bob_delete_non_existent_room_1795@localhost' id='454cdbc3eff3f3b012f0a813cd898e25' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297658-499240</version>
<user affiliation='member'>bob_delete_non_existent_room_1795@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:34:18.503 ***
kate_delete_non_existent_room_1795@localhost/res1 in
<message from='1643-297658-499248@muclight.localhost' to='kate_delete_non_existent_room_1795@localhost' id='454cdbc3eff3f3b012f0a813cd898e25' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297658-499240</version>
<user affiliation='member'>kate_delete_non_existent_room_1795@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:34:18.506 ***
REST request fails:
Code: 404
Req: {<0.29177.1>,
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1795@localhost/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9958d9b20a471b1d">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:34:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,2455}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/alicE_delete_non_existent_room_1795@localhost/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:34:18.506 ***
kate_delete_non_existent_room_1795@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.507 ***
kate_delete_non_existent_room_1795@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:34:18.507 ***
bOb_delete_non_existent_room_1795@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.507 ***
bOb_delete_non_existent_room_1795@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:34:18.507 ***
alicE_delete_non_existent_room_1795@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.507 ***
alicE_delete_non_existent_room_1795@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:34:18
=== successfully completed test case
=== === Returned value: ok