=== Test case: rest_client_SUITE:user_can_leave_a_room/1 (click for source code)
=== Config value:
[{watchdog,<0.84515.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/rest_client_suite.user_can_leave_a_room.105348.html"},
{tc_group_properties,[{name,muc},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:17:59
*** User 2024-03-08 09:17:59.933 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:17:59.934 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cdef7699baac6b69' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:17:59.934 ***🔗
alicE_user_can_leave_a_room_3174@localhost/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-08 09:17:59.934 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8zMTc0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-08 09:17:59.986 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:17:59.986 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:17:59.987 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f49425eea9e0b93e' from='localhost' version='1.0' xml:lang='en' to='alice_user_can_leave_a_room_3174@localhost'>
*** User 2024-03-08 09:17:59.987 ***🔗
alicE_user_can_leave_a_room_3174@localhost/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-08 09:17:59.987 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 out
<iq type='set' id='9af964d842c3144ec5879f4d14b4ccf0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:17:59.987 ***🔗
alicE_user_can_leave_a_room_3174@localhost/res1 in
<iq id='9af964d842c3144ec5879f4d14b4ccf0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_can_leave_a_room_3174@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:17:59.987 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 out
<iq type='set' id='8bbfb19ecab88ba40bbddaf4607891ca'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:17:59.988 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 in
<iq from='localhost' to='alice_user_can_leave_a_room_3174@localhost/res1' id='8bbfb19ecab88ba40bbddaf4607891ca' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:17:59.988 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 out
<presence/>
*** User 2024-03-08 09:17:59.994 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 in
<presence from='alice_user_can_leave_a_room_3174@localhost/res1' to='alice_user_can_leave_a_room_3174@localhost/res1'/>
*** User 2024-03-08 09:17:59.996 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:17:59.998 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59f68d7e5ecbfe3b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:17:59.998 ***🔗
bOb_user_can_leave_a_room_3174@localhost/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-08 09:17:59.999 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2Nhbl9sZWF2ZV9hX3Jvb21fMzE3NABtYWtyb2xpa2E=</auth>
*** User 2024-03-08 09:18:00.011 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:18:00.011 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:18:00.012 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a456cedabbc2fd2f' from='localhost' version='1.0' xml:lang='en' to='bob_user_can_leave_a_room_3174@localhost'>
*** User 2024-03-08 09:18:00.012 ***🔗
bOb_user_can_leave_a_room_3174@localhost/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-08 09:18:00.012 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 out
<iq type='set' id='59fcab4c608122124fd3268eacc3f236'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:18:00.013 ***🔗
bOb_user_can_leave_a_room_3174@localhost/res1 in
<iq id='59fcab4c608122124fd3268eacc3f236' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_can_leave_a_room_3174@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:18:00.014 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 out
<iq type='set' id='925a47f764fb8f6173002e8233d86b3a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:00.014 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 in
<iq from='localhost' to='bob_user_can_leave_a_room_3174@localhost/res1' id='925a47f764fb8f6173002e8233d86b3a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:00.015 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 out
<presence/>
*** User 2024-03-08 09:18:00.089 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 in
<presence from='bob_user_can_leave_a_room_3174@localhost/res1' to='bob_user_can_leave_a_room_3174@localhost/res1'/>
*** User 2024-03-08 09:18:00.123 ***🔗
REST request:
Code: 201
Req: {<0.84956.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"08d6710fbf3e0b5a">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzMxNzRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:17:59 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1709-889480-102421\"}">>,156,23667}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_can_leave_a_room_3174@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,return_headers => true}
*** User 2024-03-08 09:18:00.305 ***🔗
REST request:
Code: 204
Req: {<0.85056.0>,<<"/api/rooms/1709-889480-102421/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d54f5aa2519745d0">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzMxNzRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_user_can_leave_a_room_3174@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:00 GMT">>}],
<<>>,80,112601}
Params: #{path => <<"/api/rooms/1709-889480-102421/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_can_leave_a_room_3174@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"user\":\"bob_user_can_leave_a_room_3174@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-08 09:18:00.305 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 in
<message from='1709-889480-102421@muclight.localhost' to='bob_user_can_leave_a_room_3174@localhost' id='54c6cd07-b9c6-42b6-971f-0b9e2c3b4c91' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1709-889480-214708</version>
<user affiliation='member'>bob_user_can_leave_a_room_3174@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-08 09:18:00.306 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 in
<message from='1709-889480-102421@muclight.localhost' to='alice_user_can_leave_a_room_3174@localhost' id='54c6cd07-b9c6-42b6-971f-0b9e2c3b4c91' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1709-889480-102406</prev-version>
<version>1709-889480-214708</version>
<user affiliation='member'>bob_user_can_leave_a_room_3174@localhost</user>
</x>
<body/>
<stanza-id by='1709-889480-102421@muclight.localhost' id='C4P2LC9ALUG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-08 09:18:00.400 ***🔗
REST request:
Code: 204
Req: {<0.85201.0>,
<<"/api/rooms/1709-889480-102421/users/bob_user_can_leave_a_room_3174@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a13581e2c1c4732">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8zMTc0QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:00 GMT">>}],
<<>>,80,85934}
Params: #{path =>
<<"/api/rooms/1709-889480-102421/users/bob_user_can_leave_a_room_3174@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_can_leave_a_room_3174@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:00.400 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 in
<message from='1709-889480-102421@muclight.localhost' to='bob_user_can_leave_a_room_3174@localhost' id='c4b53a2c-132f-4b7c-98bc-dde1f8731fe1' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>bob_user_can_leave_a_room_3174@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-08 09:18:00.400 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:00.401 ***🔗
bob_user_can_leave_a_room_3174@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:18:00.401 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:00.401 ***🔗
alice_user_can_leave_a_room_3174@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 09:18:00
=== successfully completed test case
=== === Returned value: ok