=== Test case: muc_light_http_api_SUITE:delete_room_by_non_owner/1 (click for source code)
=== Config value:
[{watchdog,<0.20934.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/muc_light_http_api_suite.delete_room_by_non_owner.116354.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/log_private/"},
{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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:35:40
*** User 2022-01-27 12:35:40.589 ***
alicE_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.590 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b452425d55b17feb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.590 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.590 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX2J5X25vbl9vd25lcl8xNjU2AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 12:35:40.591 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.591 ***
alicE_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.591 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4882e5d9aeccc457' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.591 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.592 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='8f03b31b0083d7cc458d5743eca8da29'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.592 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq id='8f03b31b0083d7cc458d5743eca8da29' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_delete_room_by_non_owner_1656@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.593 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='ba731dc22a44740724ad3fa3a3d868ed'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.593 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq type='result' id='ba731dc22a44740724ad3fa3a3d868ed'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.593 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.595 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<presence from='alicE_delete_room_by_non_owner_1656@domain.example.com/res1' to='alice_delete_room_by_non_owner_1656@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.596 ***
bOb_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.596 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9ec72fddb2ec7aa5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.596 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.597 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV9ieV9ub25fb3duZXJfMTY1NgBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 12:35:40.598 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.598 ***
bOb_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.599 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a25a5d5c627a7ace' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.599 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.599 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='c675b8eb3ee06c1b5a46a1c991d6d641'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.599 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq id='c675b8eb3ee06c1b5a46a1c991d6d641' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_delete_room_by_non_owner_1656@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.599 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='ac4bf677af556dcd6128c554017a15d7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.600 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq type='result' id='ac4bf677af556dcd6128c554017a15d7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.600 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.602 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<presence from='bOb_delete_room_by_non_owner_1656@domain.example.com/res1' to='bob_delete_room_by_non_owner_1656@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.603 ***
kate_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.603 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ae6c631ed6e0217' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.603 ***
kate_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.603 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fYnlfbm9uX293bmVyXzE2NTYAbWFrcm93ZTtw</auth>
*** User 2022-01-27 12:35:40.604 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.605 ***
kate_delete_room_by_non_owner_1656@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 2022-01-27 12:35:40.605 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a83a848e275bffdf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.605 ***
kate_delete_room_by_non_owner_1656@domain.example.com/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 12:35:40.605 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='a865ed97e27b4dad8df1d10b2f44185e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.606 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq id='a865ed97e27b4dad8df1d10b2f44185e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_delete_room_by_non_owner_1656@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.606 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='617e3fdfc088ff1b0f9fa1a7fd4b68e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.606 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq type='result' id='617e3fdfc088ff1b0f9fa1a7fd4b68e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.606 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.611 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<presence from='kate_delete_room_by_non_owner_1656@domain.example.com/res1' to='kate_delete_room_by_non_owner_1656@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.612 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
<iq type='set' id='06c596f99b26a4c9f5097c9efc8743a8' to='muclight2.domain.example.com'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_delete_room_by_non_owner_1656@domain.example.com</user>
<user affiliation='member'>kate_delete_room_by_non_owner_1656@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 12:35:40.619 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<message from='1643-286940-614017@muclight2.domain.example.com' to='alice_delete_room_by_non_owner_1656@domain.example.com' id='06c596f99b26a4c9f5097c9efc8743a8' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-614004</version>
<user affiliation='owner'>alice_delete_room_by_non_owner_1656@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.619 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
<iq from='muclight2.domain.example.com' to='alicE_delete_room_by_non_owner_1656@domain.example.com/res1' id='06c596f99b26a4c9f5097c9efc8743a8' type='result'/>
*** User 2022-01-27 12:35:40.620 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
<message from='1643-286940-614017@muclight2.domain.example.com' to='bob_delete_room_by_non_owner_1656@domain.example.com' id='06c596f99b26a4c9f5097c9efc8743a8' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-614004</version>
<user affiliation='member'>bob_delete_room_by_non_owner_1656@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.620 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
<message from='1643-286940-614017@muclight2.domain.example.com' to='kate_delete_room_by_non_owner_1656@domain.example.com' id='06c596f99b26a4c9f5097c9efc8743a8' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-614004</version>
<user affiliation='member'>kate_delete_room_by_non_owner_1656@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.635 ***
REST request fails:
Code: 403
Req: {<0.21007.1>,
<<"/api/muc-lights/muclight2.domain.example.com/wonderland/bOb_delete_room_by_non_owner_1656@domain.example.com/management">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b4558a0ba61c5b76">>}],
<<>>}
Result: {{<<"403">>,<<"Forbidden">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:35:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"28">>}],
<<"you can not delete this room">>,159,13764}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/muc-lights/muclight2.domain.example.com/wonderland/bOb_delete_room_by_non_owner_1656@domain.example.com/management">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:35:40.636 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.636 ***
kate_delete_room_by_non_owner_1656@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.636 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.637 ***
bOb_delete_room_by_non_owner_1656@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.637 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.637 ***
alicE_delete_room_by_non_owner_1656@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:35:40
=== successfully completed test case
=== === Returned value: ok