=== Test case: muc_light_http_api_SUITE:delete_non_existent_room/1 (click for source code)
=== Config value:
[{watchdog,<0.20934.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/muc_light_http_api_suite.delete_non_existent_room.100611.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:35:40
*** User 2022-01-27 12:35:40.588 ***
alicE_delete_non_existent_room_1657@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-01-27 12:35:40.588 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c21f9db540789a15' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.589 ***
alicE_delete_non_existent_room_1657@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-01-27 12:35:40.589 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV8xNjU3AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 12:35:40.593 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.593 ***
alicE_delete_non_existent_room_1657@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-01-27 12:35:40.594 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd3acd30d98a5e40' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.594 ***
alicE_delete_non_existent_room_1657@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-01-27 12:35:40.594 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='7d1ab1d84c3421e1e483b114c561deb3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.594 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<iq id='7d1ab1d84c3421e1e483b114c561deb3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_non_existent_room_1657@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.594 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='943136a837ab1668e0d66507edc4ddf2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.595 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<iq type='result' id='943136a837ab1668e0d66507edc4ddf2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.595 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.600 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<presence from='alicE_delete_non_existent_room_1657@domain.example.com/res1' to='alice_delete_non_existent_room_1657@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.601 ***
bOb_delete_non_existent_room_1657@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-01-27 12:35:40.602 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c540c4cf66e45cc1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.602 ***
bOb_delete_non_existent_room_1657@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-01-27 12:35:40.602 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fMTY1NwBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 12:35:40.603 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.604 ***
bOb_delete_non_existent_room_1657@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-01-27 12:35:40.604 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='29fe198060d54969' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.604 ***
bOb_delete_non_existent_room_1657@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-01-27 12:35:40.604 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='8f1d07ebc27c7ef75505e92c6b6c0eec'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.604 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<iq id='8f1d07ebc27c7ef75505e92c6b6c0eec' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_non_existent_room_1657@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.605 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='53f32b3e0cdea561e068f57d8589e884'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.605 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<iq type='result' id='53f32b3e0cdea561e068f57d8589e884'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.605 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.607 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<presence from='bOb_delete_non_existent_room_1657@domain.example.com/res1' to='bob_delete_non_existent_room_1657@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.608 ***
kate_delete_non_existent_room_1657@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-01-27 12:35:40.608 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10484797daff1c1f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.608 ***
kate_delete_non_existent_room_1657@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-01-27 12:35:40.608 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzE2NTcAbWFrcm93ZTtw</auth>
*** User 2022-01-27 12:35:40.610 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.610 ***
kate_delete_non_existent_room_1657@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-01-27 12:35:40.610 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fabca069fe6be5cb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.610 ***
kate_delete_non_existent_room_1657@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-01-27 12:35:40.610 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='ec4f1f3c9530bacdf8134bec60799112'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.611 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<iq id='ec4f1f3c9530bacdf8134bec60799112' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_non_existent_room_1657@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.611 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='72026694faeb530e3a794e733bdaa18b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.611 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<iq type='result' id='72026694faeb530e3a794e733bdaa18b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.611 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.613 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<presence from='kate_delete_non_existent_room_1657@domain.example.com/res1' to='kate_delete_non_existent_room_1657@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.613 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
<iq type='set' id='dac26a0972b1ef77e4ce9e5276f1064b' to='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_1657@domain.example.com</user>
<user affiliation='member'>kate_delete_non_existent_room_1657@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 12:35:40.625 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<message from='1643-286940-619883@muclight2.domain.example.com' to='alice_delete_non_existent_room_1657@domain.example.com' id='dac26a0972b1ef77e4ce9e5276f1064b' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-619868</version>
<user affiliation='owner'>alice_delete_non_existent_room_1657@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.625 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
<iq from='muclight2.domain.example.com' to='alicE_delete_non_existent_room_1657@domain.example.com/res1' id='dac26a0972b1ef77e4ce9e5276f1064b' type='result'/>
*** User 2022-01-27 12:35:40.625 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
<message from='1643-286940-619883@muclight2.domain.example.com' to='bob_delete_non_existent_room_1657@domain.example.com' id='dac26a0972b1ef77e4ce9e5276f1064b' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-619868</version>
<user affiliation='member'>bob_delete_non_existent_room_1657@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.626 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
<message from='1643-286940-619883@muclight2.domain.example.com' to='kate_delete_non_existent_room_1657@domain.example.com' id='dac26a0972b1ef77e4ce9e5276f1064b' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-619868</version>
<user affiliation='member'>kate_delete_non_existent_room_1657@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.639 ***
REST request fails:
Code: 404
Req: {<0.21009.1>,
<<"/api/muc-lights/muclight2.domain.example.com/some_non_existent_room/alicE_delete_non_existent_room_1657@domain.example.com/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89a627be1079beec">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:35:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,4708}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight2.domain.example.com/some_non_existent_room/alicE_delete_non_existent_room_1657@domain.example.com/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:35:40.639 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.639 ***
kate_delete_non_existent_room_1657@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.639 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.640 ***
bOb_delete_non_existent_room_1657@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.640 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.640 ***
alicE_delete_non_existent_room_1657@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:35:40
=== successfully completed test case
=== === Returned value: ok