=== Test case: muc_light_http_api_SUITE:delete_room_without_having_a_membership/1 (click for source code)
=== Config value:
[{watchdog,<0.2893.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/muc_light_http_api_suite.delete_room_without_having_a_membership.20356.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:36:06
*** User 2022-03-03 10:36:06.927 ***
alicE_delete_room_without_having_a_membership_956@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-03-03 10:36:06.927 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0808fe61d646a999' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.927 ***
alicE_delete_room_without_having_a_membership_956@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>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-03-03 10:36:06.927 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX3dpdGhvdXRfaGF2aW5nX2FfbWVtYmVyc2hpcF85NTYAbWF0eWdyeXNh</auth>
*** User 2022-03-03 10:36:06.929 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.929 ***
alicE_delete_room_without_having_a_membership_956@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-03-03 10:36:06.929 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f653a5d49ca210df' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.929 ***
alicE_delete_room_without_having_a_membership_956@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-03-03 10:36:06.929 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='721e1dde1951116d50b974e5c3373879'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.930 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<iq id='721e1dde1951116d50b974e5c3373879' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_room_without_having_a_membership_956@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.930 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='60c9b5f21e94c0681c9306e7e4b41633'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.930 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<iq type='result' id='60c9b5f21e94c0681c9306e7e4b41633'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.930 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.931 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<presence from='alicE_delete_room_without_having_a_membership_956@localhost/res1' to='alice_delete_room_without_having_a_membership_956@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.932 ***
bOb_delete_room_without_having_a_membership_956@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-03-03 10:36:06.932 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b73b15ac79a6f0f5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.932 ***
bOb_delete_room_without_having_a_membership_956@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>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-03-03 10:36:06.932 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV93aXRob3V0X2hhdmluZ19hX21lbWJlcnNoaXBfOTU2AG1ha3JvbGlrYQ==</auth>
*** User 2022-03-03 10:36:06.933 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.933 ***
bOb_delete_room_without_having_a_membership_956@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-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ee29178f134c672' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@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-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='f7c3563508738c1ff6453c5d449944ad'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<iq id='f7c3563508738c1ff6453c5d449944ad' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_room_without_having_a_membership_956@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='7a776ae6eff5c021eb08c63fa8afaf6e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<iq type='result' id='7a776ae6eff5c021eb08c63fa8afaf6e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.934 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.935 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<presence from='bOb_delete_room_without_having_a_membership_956@localhost/res1' to='bob_delete_room_without_having_a_membership_956@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.935 ***
kate_delete_room_without_having_a_membership_956@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-03-03 10:36:06.936 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d7be4d041db8ce5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.936 ***
kate_delete_room_without_having_a_membership_956@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>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-03-03 10:36:06.936 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fd2l0aG91dF9oYXZpbmdfYV9tZW1iZXJzaGlwXzk1NgBtYWtyb3dlO3A=</auth>
*** User 2022-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@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-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7f19722ffe883d7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@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-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='f223f666f08e155bfe9588a62ecf2bd4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.937 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<iq id='f223f666f08e155bfe9588a62ecf2bd4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_room_without_having_a_membership_956@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.938 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='8d2e9d0944b642f52b392fbddc725c87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.938 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<iq type='result' id='8d2e9d0944b642f52b392fbddc725c87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.938 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.939 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
<presence from='kate_delete_room_without_having_a_membership_956@localhost/res1' to='kate_delete_room_without_having_a_membership_956@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.939 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
<iq type='set' id='3d94bb38077ca5627dce8355337d4499' to='delete_room_without_having_a_membership@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_956@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-03-03 10:36:06.940 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<message from='delete_room_without_having_a_membership@muclight.localhost' to='alice_delete_room_without_having_a_membership_956@localhost' id='3d94bb38077ca5627dce8355337d4499' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-939587</version>
<user affiliation='owner'>alice_delete_room_without_having_a_membership_956@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.940 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
<iq from='delete_room_without_having_a_membership@muclight.localhost' to='alicE_delete_room_without_having_a_membership_956@localhost/res1' id='3d94bb38077ca5627dce8355337d4499' type='result'/>
*** User 2022-03-03 10:36:06.940 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
<message from='delete_room_without_having_a_membership@muclight.localhost' to='bob_delete_room_without_having_a_membership_956@localhost' id='3d94bb38077ca5627dce8355337d4499' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-939587</version>
<user affiliation='member'>bob_delete_room_without_having_a_membership_956@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.942 ***
REST request fails:
Code: 403
Req: {<0.2983.1>,
<<"/api/muc-lights/muclight.localhost/delete_room_without_having_a_membership/kate_delete_room_without_having_a_membership_956@localhost/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb20af2070da23e9">>}],
<<>>}
Result: {{<<"403">>,<<"Forbidden">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:36:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"36">>}],
<<"Given user does not occupy this room">>,167,901}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/delete_room_without_having_a_membership/kate_delete_room_without_having_a_membership_956@localhost/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:36:06.942 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.942 ***
kate_delete_room_without_having_a_membership_956@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.942 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.942 ***
bOb_delete_room_without_having_a_membership_956@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.942 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.942 ***
alicE_delete_room_without_having_a_membership_956@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:36:06
=== successfully completed test case
=== === Returned value: ok