=== Test case: muc_light_http_api_SUITE:delete_room/1 (click for source code)
=== Config value:
[{watchdog,<0.69453.0>},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ca2b1cd7241c.2024-03-11_11.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-03-11_11.39.22/muc_light_http_api_suite.delete_room.143875.html"},
{tc_group_properties,[{name,positive},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@ca2b1cd7241c.2024-03-11_11.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2024-03-11_11.39.22/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}},
{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@ca2b1cd7241c.2024-03-11_11.25.11"
=== Started at 2024-03-11 11:39:22
*** User 2024-03-11 11:39:22.952 ***🔗
alicE_delete_room_2786@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 2024-03-11 11:39:22.953 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a75e4562a17112bf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:39:22.953 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.953 ***🔗
alicE_delete_room_2786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tXzI3ODYAbWF0eWdyeXNh</auth>
*** User 2024-03-11 11:39:22.954 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:39:22.954 ***🔗
alicE_delete_room_2786@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 2024-03-11 11:39:22.955 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0288b540b07b7c72' from='domain.example.com' version='1.0' xml:lang='en' to='alice_delete_room_2786@domain.example.com'>
*** User 2024-03-11 11:39:22.955 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.955 ***🔗
alicE_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='a8c513ee3f60288a01c3621ab6a19c51'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:39:22.955 ***🔗
alicE_delete_room_2786@domain.example.com/res1 in
<iq id='a8c513ee3f60288a01c3621ab6a19c51' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_delete_room_2786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:39:22.955 ***🔗
alice_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='59a2392253a77da22bec2268174d7902'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.955 ***🔗
alice_delete_room_2786@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_delete_room_2786@domain.example.com/res1' id='59a2392253a77da22bec2268174d7902' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.956 ***🔗
alice_delete_room_2786@domain.example.com/res1 out
<presence/>
*** User 2024-03-11 11:39:22.957 ***🔗
alice_delete_room_2786@domain.example.com/res1 in
<presence from='alice_delete_room_2786@domain.example.com/res1' to='alice_delete_room_2786@domain.example.com/res1'/>
*** User 2024-03-11 11:39:22.957 ***🔗
bOb_delete_room_2786@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 2024-03-11 11:39:22.957 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9de391fd54ceb1b2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:39:22.958 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.958 ***🔗
bOb_delete_room_2786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV8yNzg2AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@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 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9efef7970fb6772' from='domain.example.com' version='1.0' xml:lang='en' to='bob_delete_room_2786@domain.example.com'>
*** User 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='f16817a189fddbaafa5bbd72c205f716'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:39:22.959 ***🔗
bOb_delete_room_2786@domain.example.com/res1 in
<iq id='f16817a189fddbaafa5bbd72c205f716' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_delete_room_2786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:39:22.960 ***🔗
bob_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='13d7c86f6a9105aa2c7cb65297b274aa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.960 ***🔗
bob_delete_room_2786@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_delete_room_2786@domain.example.com/res1' id='13d7c86f6a9105aa2c7cb65297b274aa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.961 ***🔗
bob_delete_room_2786@domain.example.com/res1 out
<presence/>
*** User 2024-03-11 11:39:22.962 ***🔗
bob_delete_room_2786@domain.example.com/res1 in
<presence from='bob_delete_room_2786@domain.example.com/res1' to='bob_delete_room_2786@domain.example.com/res1'/>
*** User 2024-03-11 11:39:22.962 ***🔗
kate_delete_room_2786@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 2024-03-11 11:39:22.962 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7e749c7c49dee8c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:39:22.963 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.963 ***🔗
kate_delete_room_2786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fMjc4NgBtYWtyb3dlO3A=</auth>
*** User 2024-03-11 11:39:22.964 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:39:22.964 ***🔗
kate_delete_room_2786@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 2024-03-11 11:39:22.964 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af3a738eec8f274e' from='domain.example.com' version='1.0' xml:lang='en' to='kate_delete_room_2786@domain.example.com'>
*** User 2024-03-11 11:39:22.964 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-11 11:39:22.964 ***🔗
kate_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='b25870db83472ea65bf9cabaf5ce8a8a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:39:22.965 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<iq id='b25870db83472ea65bf9cabaf5ce8a8a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_room_2786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:39:22.965 ***🔗
kate_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='cb0c68c670c134357f4ad32b2b64b06b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.965 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_delete_room_2786@domain.example.com/res1' id='cb0c68c670c134357f4ad32b2b64b06b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:39:22.965 ***🔗
kate_delete_room_2786@domain.example.com/res1 out
<presence/>
*** User 2024-03-11 11:39:22.966 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<presence from='kate_delete_room_2786@domain.example.com/res1' to='kate_delete_room_2786@domain.example.com/res1'/>
*** User 2024-03-11 11:39:22.966 ***🔗
alice_delete_room_2786@domain.example.com/res1 out
<iq type='set' id='6f04c05e8d9bac6bc291a19dc5f14773' to='delete_room@muclight.domain.example.com'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_delete_room_2786@domain.example.com</user>
<user affiliation='member'>kate_delete_room_2786@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2024-03-11 11:39:22.975 ***🔗
alice_delete_room_2786@domain.example.com/res1 in
<message from='delete_room@muclight.domain.example.com' to='alice_delete_room_2786@domain.example.com' id='6f04c05e8d9bac6bc291a19dc5f14773' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1710-157162-971692</version>
<user affiliation='owner'>alice_delete_room_2786@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-03-11 11:39:22.975 ***🔗
alice_delete_room_2786@domain.example.com/res1 in
<iq from='delete_room@muclight.domain.example.com' to='alice_delete_room_2786@domain.example.com/res1' id='6f04c05e8d9bac6bc291a19dc5f14773' type='result'/>
*** User 2024-03-11 11:39:22.975 ***🔗
bob_delete_room_2786@domain.example.com/res1 in
<message from='delete_room@muclight.domain.example.com' to='bob_delete_room_2786@domain.example.com' id='6f04c05e8d9bac6bc291a19dc5f14773' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1710-157162-971692</version>
<user affiliation='member'>bob_delete_room_2786@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-03-11 11:39:22.975 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
<message from='delete_room@muclight.domain.example.com' to='kate_delete_room_2786@domain.example.com' id='6f04c05e8d9bac6bc291a19dc5f14773' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1710-157162-971692</version>
<user affiliation='member'>kate_delete_room_2786@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-03-11 11:39:22.984 ***🔗
REST request:
Code: 204
Req: {<0.69526.0>,
<<"/api/muc-lights/muclight.domain.example.com/delete_room/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4b5c74c21d986bfe">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:39:22 GMT">>}],
<<>>,80,7935}
Params: #{path =>
<<"/api/muc-lights/muclight.domain.example.com/delete_room/management">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-03-11 11:39:22.985 ***🔗
kate_delete_room_2786@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-11 11:39:22.985 ***🔗
kate_delete_room_2786@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-11 11:39:22.985 ***🔗
bob_delete_room_2786@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-11 11:39:22.985 ***🔗
bob_delete_room_2786@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-11 11:39:22.985 ***🔗
alice_delete_room_2786@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-11 11:39:22.986 ***🔗
alice_delete_room_2786@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-11 11:39:23
=== successfully completed test case
=== === Returned value: ok