=== Test case: muc_light_http_api_SUITE:delete_non_existent_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2915.2>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-05-18_10.08.25/muc_light_http_api_suite.delete_non_existent_room.119299.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@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-05-18_10.08.25/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => #{},mod_muc_light_commands => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{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@3b05d744781a.2022-05-18_09.59.20"
=== Started at 2022-05-18 10:08:25
*** User 2022-05-18 10:08:25.300 ***
alicE_delete_non_existent_room_2081@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-05-18 10:08:25.300 ***
alicE_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0190a99ee2b0e75f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.300 ***
alicE_delete_non_existent_room_2081@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-05-18 10:08:25.300 ***
alicE_delete_non_existent_room_2081@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9ub25fZXhpc3RlbnRfcm9vbV8yMDgxAG1hdHlncnlzYQ==</auth>
*** User 2022-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@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-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9e4b9966a263ac0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@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-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='4ca679580afe4e860fba38e5d5a45c9d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.301 ***
alicE_delete_non_existent_room_2081@localhost/res1 in
<iq id='4ca679580afe4e860fba38e5d5a45c9d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_delete_non_existent_room_2081@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.301 ***
alice_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='479e20d7b6e6a7f3ee02ea6cec9c7f73'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.302 ***
alice_delete_non_existent_room_2081@localhost/res1 in
<iq type='result' id='479e20d7b6e6a7f3ee02ea6cec9c7f73'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.302 ***
alice_delete_non_existent_room_2081@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.303 ***
alice_delete_non_existent_room_2081@localhost/res1 in
<presence from='alice_delete_non_existent_room_2081@localhost/res1' to='alice_delete_non_existent_room_2081@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.304 ***
bOb_delete_non_existent_room_2081@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-05-18 10:08:25.304 ***
bOb_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74716d0bf1bb786d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.304 ***
bOb_delete_non_existent_room_2081@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-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfbm9uX2V4aXN0ZW50X3Jvb21fMjA4MQBtYWtyb2xpa2E=</auth>
*** User 2022-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@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-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d85da90f07c63e6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@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-05-18 10:08:25.305 ***
bOb_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='1909f5591e34f951057f86b51a3dfa0c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.306 ***
bOb_delete_non_existent_room_2081@localhost/res1 in
<iq id='1909f5591e34f951057f86b51a3dfa0c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_delete_non_existent_room_2081@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.306 ***
bob_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='6417a18e7628ab2542669c9a8a56e0a5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.306 ***
bob_delete_non_existent_room_2081@localhost/res1 in
<iq type='result' id='6417a18e7628ab2542669c9a8a56e0a5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.306 ***
bob_delete_non_existent_room_2081@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.307 ***
bob_delete_non_existent_room_2081@localhost/res1 in
<presence from='bob_delete_non_existent_room_2081@localhost/res1' to='bob_delete_non_existent_room_2081@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.308 ***
kate_delete_non_existent_room_2081@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-05-18 10:08:25.308 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14124e71ae597f38' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.308 ***
kate_delete_non_existent_room_2081@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-05-18 10:08:25.309 ***
kate_delete_non_existent_room_2081@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX25vbl9leGlzdGVudF9yb29tXzIwODEAbWFrcm93ZTtw</auth>
*** User 2022-05-18 10:08:25.309 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:08:25.309 ***
kate_delete_non_existent_room_2081@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-05-18 10:08:25.310 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7e21208146316ac4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:08:25.310 ***
kate_delete_non_existent_room_2081@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-05-18 10:08:25.310 ***
kate_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='c7420cf12433d4ac7deffa665090545b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:08:25.310 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<iq id='c7420cf12433d4ac7deffa665090545b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_non_existent_room_2081@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:08:25.310 ***
kate_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='14adaa1ad0db82111ac7bda0690c1a11'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.311 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<iq type='result' id='14adaa1ad0db82111ac7bda0690c1a11'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:08:25.311 ***
kate_delete_non_existent_room_2081@localhost/res1 out
<presence/>
*** User 2022-05-18 10:08:25.312 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<presence from='kate_delete_non_existent_room_2081@localhost/res1' to='kate_delete_non_existent_room_2081@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:08:25.312 ***
alice_delete_non_existent_room_2081@localhost/res1 out
<iq type='set' id='eda85672cf9316d2d458c6407295e999' 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_2081@localhost</user>
<user affiliation='member'>kate_delete_non_existent_room_2081@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-05-18 10:08:25.314 ***
alice_delete_non_existent_room_2081@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='alice_delete_non_existent_room_2081@localhost' id='eda85672cf9316d2d458c6407295e999' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1652-868505-312840</version>
<user affiliation='owner'>alice_delete_non_existent_room_2081@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.315 ***
alice_delete_non_existent_room_2081@localhost/res1 in
<iq from='delete_non_existent_room@muclight.localhost' to='alice_delete_non_existent_room_2081@localhost/res1' id='eda85672cf9316d2d458c6407295e999' type='result'/>
*** User 2022-05-18 10:08:25.315 ***
bob_delete_non_existent_room_2081@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='bob_delete_non_existent_room_2081@localhost' id='eda85672cf9316d2d458c6407295e999' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1652-868505-312840</version>
<user affiliation='member'>bob_delete_non_existent_room_2081@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.315 ***
kate_delete_non_existent_room_2081@localhost/res1 in
<message from='delete_non_existent_room@muclight.localhost' to='kate_delete_non_existent_room_2081@localhost' id='eda85672cf9316d2d458c6407295e999' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1652-868505-312840</version>
<user affiliation='member'>kate_delete_non_existent_room_2081@localhost</user>
</x>
<body/>
</message>
*** User 2022-05-18 10:08:25.317 ***
REST request fails:
Code: 404
Req: {<0.2972.2>,
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af4edfbf48b7bfb7">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:08:24 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"Cannot remove not existing room">>,162,1228}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/some_non_existent_room/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:08:25.317 ***
kate_delete_non_existent_room_2081@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.317 ***
kate_delete_non_existent_room_2081@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:08:25.317 ***
bob_delete_non_existent_room_2081@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.317 ***
bob_delete_non_existent_room_2081@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:08:25.318 ***
alice_delete_non_existent_room_2081@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:08:25.318 ***
alice_delete_non_existent_room_2081@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:08:25
=== successfully completed test case
=== === Returned value: ok