=== Test case: muc_light_http_api_SUITE:delete_room_without_having_a_membership/1 (click for source code)
=== Config value:
[{watchdog,<0.29102.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/muc_light_http_api_suite.delete_room_without_having_a_membership.125954.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.34.18/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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:34:18
*** User 2022-01-27 15:34:18.475 ***
alicE_delete_room_without_having_a_membership_1794@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:34:18.476 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04a6010e79c3d62a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.476 ***
alicE_delete_room_without_having_a_membership_1794@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:34:18.476 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX3dpdGhvdXRfaGF2aW5nX2FfbWVtYmVyc2hpcF8xNzk0AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:34:18.477 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.477 ***
alicE_delete_room_without_having_a_membership_1794@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:34:18.477 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60a4557173e2a81f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@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:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='5f40aab3eb528913df578eb13afcd7da'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq id='5f40aab3eb528913df578eb13afcd7da' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_room_without_having_a_membership_1794@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='6855c2eb8ea55cb629305ccd4f626289'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq type='result' id='6855c2eb8ea55cb629305ccd4f626289'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.478 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.480 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<presence from='alicE_delete_room_without_having_a_membership_1794@localhost/res1' to='alice_delete_room_without_having_a_membership_1794@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.480 ***
bOb_delete_room_without_having_a_membership_1794@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:34:18.481 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='037b14151c13657e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.481 ***
bOb_delete_room_without_having_a_membership_1794@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:34:18.481 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV93aXRob3V0X2hhdmluZ19hX21lbWJlcnNoaXBfMTc5NABtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_room_without_having_a_membership_1794@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:34:18.483 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9063cfd646d790a6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.483 ***
bOb_delete_room_without_having_a_membership_1794@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:34:18.483 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='5a3de29b001ce74a9e0450122dc09627'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq id='5a3de29b001ce74a9e0450122dc09627' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_room_without_having_a_membership_1794@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='5ab50587bc4e7edff7c172e473f1417f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq type='result' id='5ab50587bc4e7edff7c172e473f1417f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.484 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.486 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<presence from='bOb_delete_room_without_having_a_membership_1794@localhost/res1' to='bob_delete_room_without_having_a_membership_1794@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.487 ***
kate_delete_room_without_having_a_membership_1794@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:34:18.487 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb63e4c009b9b4c0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.487 ***
kate_delete_room_without_having_a_membership_1794@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:34:18.487 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fd2l0aG91dF9oYXZpbmdfYV9tZW1iZXJzaGlwXzE3OTQAbWFrcm93ZTtw</auth>
*** User 2022-01-27 15:34:18.488 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:18.488 ***
kate_delete_room_without_having_a_membership_1794@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:34:18.489 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='28e44225508374dc' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:18.489 ***
kate_delete_room_without_having_a_membership_1794@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:34:18.489 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='f7548efc807cd5bbdc71533dce7138ac'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:18.489 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq id='f7548efc807cd5bbdc71533dce7138ac' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_room_without_having_a_membership_1794@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:18.489 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='a5e6cae483149a566453397a8fb29500'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.490 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq type='result' id='a5e6cae483149a566453397a8fb29500'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:18.490 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:18.491 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
<presence from='kate_delete_room_without_having_a_membership_1794@localhost/res1' to='kate_delete_room_without_having_a_membership_1794@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:18.492 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
<iq type='set' id='57de3e660ae513fa60df828d5f1f5635' 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_1794@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:34:18.496 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<message from='1643-297658-492879@muclight.localhost' to='alice_delete_room_without_having_a_membership_1794@localhost' id='57de3e660ae513fa60df828d5f1f5635' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297658-492866</version>
<user affiliation='owner'>alice_delete_room_without_having_a_membership_1794@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:34:18.496 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
<iq from='muclight.localhost' to='alicE_delete_room_without_having_a_membership_1794@localhost/res1' id='57de3e660ae513fa60df828d5f1f5635' type='result'/>
*** User 2022-01-27 15:34:18.496 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
<message from='1643-297658-492879@muclight.localhost' to='bob_delete_room_without_having_a_membership_1794@localhost' id='57de3e660ae513fa60df828d5f1f5635' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297658-492866</version>
<user affiliation='member'>bob_delete_room_without_having_a_membership_1794@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:34:18.499 ***
REST request fails:
Code: 403
Req: {<0.29167.1>,
<<"/api/muc-lights/muclight.localhost/wonderland/kate_delete_room_without_having_a_membership_1794@localhost/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5201260c36203442">>}],
<<>>}
Result: {{<<"403">>,<<"Forbidden">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:34:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"36">>}],
<<"given user does not occupy this room">>,167,1327}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight.localhost/wonderland/kate_delete_room_without_having_a_membership_1794@localhost/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:34:18.499 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.499 ***
kate_delete_room_without_having_a_membership_1794@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:34:18.499 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.500 ***
bOb_delete_room_without_having_a_membership_1794@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:34:18.500 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:18.500 ***
alicE_delete_room_without_having_a_membership_1794@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:34:18
=== successfully completed test case
=== === Returned value: ok