=== Test case: rest_client_SUITE:user_can_leave_a_room/1 (click for source code)
=== Config value:
[{watchdog,<0.75697.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@6509628dc6d5.2024-04-09_06.54.13/big_tests.tests.rest_client_SUITE.logs/run.2024-04-09_07.06.27/rest_client_suite.user_can_leave_a_room.59781.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@6509628dc6d5.2024-04-09_06.54.13/big_tests.tests.rest_client_SUITE.logs/run.2024-04-09_07.06.27/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@6509628dc6d5.2024-04-09_06.54.13"
=== Started at 2024-04-09 07:06:27
*** User 2024-04-09 07:06:28.060 ***🔗
alicE_user_can_leave_a_room_2792@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 2024-04-09 07:06:28.061 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c614d84ab0c9db39' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-09 07:06:28.061 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/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-04-09 07:06:28.061 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8yNzkyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-09 07:06:28.065 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 07:06:28.065 ***🔗
alicE_user_can_leave_a_room_2792@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 2024-04-09 07:06:28.066 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='409caf91b26b5c89' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_can_leave_a_room_2792@domain.example.com'>
*** User 2024-04-09 07:06:28.066 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/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-04-09 07:06:28.066 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 out
<iq type='set' id='59c8657a1c3ee2eb3a9184a44a2ff4b4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-09 07:06:28.067 ***🔗
alicE_user_can_leave_a_room_2792@domain.example.com/res1 in
<iq id='59c8657a1c3ee2eb3a9184a44a2ff4b4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_can_leave_a_room_2792@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-09 07:06:28.067 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 out
<iq type='set' id='3ed357df33cca074d53cf8d5ff369588'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:28.071 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_can_leave_a_room_2792@domain.example.com/res1' id='3ed357df33cca074d53cf8d5ff369588' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:28.071 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 out
<presence/>
*** User 2024-04-09 07:06:28.082 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 in
<presence from='alice_user_can_leave_a_room_2792@domain.example.com/res1' to='alice_user_can_leave_a_room_2792@domain.example.com/res1'/>
*** User 2024-04-09 07:06:28.082 ***🔗
bOb_user_can_leave_a_room_2792@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 2024-04-09 07:06:28.140 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abd394b037e53361' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-09 07:06:28.141 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/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-04-09 07:06:28.141 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2Nhbl9sZWF2ZV9hX3Jvb21fMjc5MgBtYWtyb2xpa2E=</auth>
*** User 2024-04-09 07:06:28.144 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 07:06:28.145 ***🔗
bOb_user_can_leave_a_room_2792@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 2024-04-09 07:06:28.145 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbed3da163eedccd' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_can_leave_a_room_2792@domain.example.com'>
*** User 2024-04-09 07:06:28.145 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/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-04-09 07:06:28.145 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 out
<iq type='set' id='3ef617e613235f4e17e3982949d3a2be'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-09 07:06:28.147 ***🔗
bOb_user_can_leave_a_room_2792@domain.example.com/res1 in
<iq id='3ef617e613235f4e17e3982949d3a2be' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_can_leave_a_room_2792@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-09 07:06:28.147 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 out
<iq type='set' id='33c60560100d8ec2e1c416158b1b5cd0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:28.149 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_can_leave_a_room_2792@domain.example.com/res1' id='33c60560100d8ec2e1c416158b1b5cd0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:28.149 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 out
<presence/>
*** User 2024-04-09 07:06:28.161 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 in
<presence from='bob_user_can_leave_a_room_2792@domain.example.com/res1' to='bob_user_can_leave_a_room_2792@domain.example.com/res1'/>
*** User 2024-04-09 07:06:28.260 ***🔗
REST request:
Code: 201
Req: {<0.76090.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e7527e48d2bd72d9">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzI3OTJAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:27 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1712-646388-176870\"}">>,156,90416}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_can_leave_a_room_2792@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-09 07:06:28.374 ***🔗
REST request:
Code: 204
Req: {<0.76219.0>,<<"/api/rooms/1712-646388-176870/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0435a8c0ff6df811">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzI3OTJAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_user_can_leave_a_room_2792@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:27 GMT">>}],
<<>>,80,106265}
Params: #{path => <<"/api/rooms/1712-646388-176870/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_user_can_leave_a_room_2792@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_user_can_leave_a_room_2792@domain.example.com\"}">>,
role => client,method => <<"POST">>,return_headers => true}
*** User 2024-04-09 07:06:28.375 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 in
<message from='1712-646388-176870@muclight.domain.example.com' to='bob_user_can_leave_a_room_2792@domain.example.com' id='83820e21-762c-4757-9d2b-3b677644b3cc' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1712-646388-346876</version>
<user affiliation='member'>bob_user_can_leave_a_room_2792@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-09 07:06:28.375 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 in
<message from='1712-646388-176870@muclight.domain.example.com' to='alice_user_can_leave_a_room_2792@domain.example.com' id='83820e21-762c-4757-9d2b-3b677644b3cc' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1712-646388-176857</prev-version>
<version>1712-646388-346876</version>
<user affiliation='member'>bob_user_can_leave_a_room_2792@domain.example.com</user>
</x>
<body/>
<stanza-id by='1712-646388-176870@muclight.domain.example.com' id='C5D4HUD7D581' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-09 07:06:28.461 ***🔗
REST request:
Code: 204
Req: {<0.76405.0>,
<<"/api/rooms/1712-646388-176870/users/bob_user_can_leave_a_room_2792@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44951635df265ba4">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8yNzkyQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:28 GMT">>}],
<<>>,80,77429}
Params: #{path =>
<<"/api/rooms/1712-646388-176870/users/bob_user_can_leave_a_room_2792@domain.example.com">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_user_can_leave_a_room_2792@domain.example.com">>,
<<"makrolika">>},
body => <<>>,role => client,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-09 07:06:28.462 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 in
<message from='1712-646388-176870@muclight.domain.example.com' to='bob_user_can_leave_a_room_2792@domain.example.com' id='e775fa97-917f-4754-8ba6-3b4171404fe5' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>bob_user_can_leave_a_room_2792@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-09 07:06:28.462 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-09 07:06:28.463 ***🔗
bob_user_can_leave_a_room_2792@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-09 07:06:28.464 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-09 07:06:28.464 ***🔗
alice_user_can_leave_a_room_2792@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-09 07:06:28
=== successfully completed test case
=== === Returned value: ok