=== Test case: muc_light_http_api_SUITE:delete_room_without_having_a_membership/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_room_without_having_a_membership.35331.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_room_without_having_a_membership_1009@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.040 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27a7688e45357bc2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.040 ***
alicE_delete_room_without_having_a_membership_1009@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.040 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX3dpdGhvdXRfaGF2aW5nX2FfbWVtYmVyc2hpcF8xMDA5AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:33:35.040 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.040 ***
alicE_delete_room_without_having_a_membership_1009@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_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='edf37613412c32eb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_room_without_having_a_membership_1009@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.041 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='4d81e53eaab9eae4b70e351912dd2305'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq id='4d81e53eaab9eae4b70e351912dd2305' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_room_without_having_a_membership_1009@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.041 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='b07f89c663d84c057907e27976812dcc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq type='result' id='b07f89c663d84c057907e27976812dcc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.042 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<presence from='alicE_delete_room_without_having_a_membership_1009@localhost/res1' to='alice_delete_room_without_having_a_membership_1009@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.043 ***
bOb_delete_room_without_having_a_membership_1009@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.043 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c69e3d96f128b9f4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.043 ***
bOb_delete_room_without_having_a_membership_1009@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.043 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV93aXRob3V0X2hhdmluZ19hX21lbWJlcnNoaXBfMTAwOQBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_room_without_having_a_membership_1009@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_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fdafa45128923ee2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_room_without_having_a_membership_1009@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.044 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='ed4dfcedb3a5601c4d9f9b3ab0fa6837'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq id='ed4dfcedb3a5601c4d9f9b3ab0fa6837' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_room_without_having_a_membership_1009@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.044 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='d85ef070a48eaac365604a16d03620c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq type='result' id='d85ef070a48eaac365604a16d03620c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.045 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<presence from='bOb_delete_room_without_having_a_membership_1009@localhost/res1' to='bob_delete_room_without_having_a_membership_1009@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.046 ***
kate_delete_room_without_having_a_membership_1009@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.046 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c48ca1623cf4a5c4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.047 ***
kate_delete_room_without_having_a_membership_1009@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.047 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fd2l0aG91dF9oYXZpbmdfYV9tZW1iZXJzaGlwXzEwMDkAbWFrcm93ZTtw</auth>
*** User 2022-01-27 15:33:35.047 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:35.047 ***
kate_delete_room_without_having_a_membership_1009@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_room_without_having_a_membership_1009@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='126a27f3294f777d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_room_without_having_a_membership_1009@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.048 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='8fb7411676e15f3c0de76385217687b7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq id='8fb7411676e15f3c0de76385217687b7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_room_without_having_a_membership_1009@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='e62de437b2789520818722dfdd7abfe7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.048 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq type='result' id='e62de437b2789520818722dfdd7abfe7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:35.049 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
<presence from='kate_delete_room_without_having_a_membership_1009@localhost/res1' to='kate_delete_room_without_having_a_membership_1009@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:35.049 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
<iq type='set' id='7fc4df532208a89d66a343cf10a1a772' to='muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_delete_room_without_having_a_membership_1009@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:33:35.050 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<message from='1643-297615-50038@muclight.localhost' to='alice_delete_room_without_having_a_membership_1009@localhost' id='7fc4df532208a89d66a343cf10a1a772' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297615-49988</version>
<user affiliation='owner'>alice_delete_room_without_having_a_membership_1009@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:35.050 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
<iq from='muclight.localhost' to='alicE_delete_room_without_having_a_membership_1009@localhost/res1' id='7fc4df532208a89d66a343cf10a1a772' type='result'/>
*** User 2022-01-27 15:33:35.050 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
<message from='1643-297615-50038@muclight.localhost' to='bob_delete_room_without_having_a_membership_1009@localhost' id='7fc4df532208a89d66a343cf10a1a772' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297615-49988</version>
<user affiliation='member'>bob_delete_room_without_having_a_membership_1009@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:35.052 ***
REST request fails:
Code: 403
Req: {<0.2885.1>,
<<"/api/muc-lights/muclight.localhost/wonderland/kate_delete_room_without_having_a_membership_1009@localhost/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e91153b2c0a76c11">>}],
<<>>}
Result: {{<<"403">>,<<"Forbidden">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"36">>}],
<<"given user does not occupy this room">>,167,949}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/wonderland/kate_delete_room_without_having_a_membership_1009@localhost/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:35.053 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
kate_delete_room_without_having_a_membership_1009@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
bOb_delete_room_without_having_a_membership_1009@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:35.053 ***
alicE_delete_room_without_having_a_membership_1009@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:35
=== successfully completed test case
=== === Returned value: ok