=== Test case: rest_client_SUITE:user_is_removed_from_a_room/1 (click for source code)
=== Config value:
[{watchdog,<0.76256.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"pgsql_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@77edf90f0c88.2024-04-10_12.44.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.56.45/rest_client_suite.user_is_removed_from_a_room.222722.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@77edf90f0c88.2024-04-10_12.44.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.56.45/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_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_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
resume_timeout => 600},
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@77edf90f0c88.2024-04-10_12.44.01"
=== Started at 2024-04-10 12:56:46
*** User 2024-04-10 12:56:46.168 ***🔗
alicE_user_is_removed_from_a_room_2919@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-10 12:56:46.169 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a721055cc64b4117' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:56:46.169 ***🔗
alicE_user_is_removed_from_a_room_2919@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-10 12:56:46.169 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaXNfcmVtb3ZlZF9mcm9tX2Ffcm9vbV8yOTE5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-10 12:56:46.171 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:56:46.171 ***🔗
alicE_user_is_removed_from_a_room_2919@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-10 12:56:46.172 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53b4002352910942' from='domain.example.com' version='1.0' xml:lang='en' to='alice_user_is_removed_from_a_room_2919@domain.example.com'>
*** User 2024-04-10 12:56:46.172 ***🔗
alicE_user_is_removed_from_a_room_2919@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-10 12:56:46.172 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<iq type='set' id='734374a4c8f1f5d64aa29c88bf3ec629'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:56:46.172 ***🔗
alicE_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<iq id='734374a4c8f1f5d64aa29c88bf3ec629' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_is_removed_from_a_room_2919@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:56:46.172 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<iq type='set' id='f122c633b10f7630bdb3ec5061694258'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:56:46.173 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_user_is_removed_from_a_room_2919@domain.example.com/res1' id='f122c633b10f7630bdb3ec5061694258' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:56:46.173 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 12:56:46.177 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<presence from='alice_user_is_removed_from_a_room_2919@domain.example.com/res1' to='alice_user_is_removed_from_a_room_2919@domain.example.com/res1'/>
*** User 2024-04-10 12:56:46.210 ***🔗
bOb_user_is_removed_from_a_room_2919@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-10 12:56:46.211 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94ed273ba0a2642e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:56:46.211 ***🔗
bOb_user_is_removed_from_a_room_2919@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-10 12:56:46.211 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2lzX3JlbW92ZWRfZnJvbV9hX3Jvb21fMjkxOQBtYWtyb2xpa2E=</auth>
*** User 2024-04-10 12:56:46.214 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:56:46.214 ***🔗
bOb_user_is_removed_from_a_room_2919@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-10 12:56:46.215 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9d81fca8c45f10f' from='domain.example.com' version='1.0' xml:lang='en' to='bob_user_is_removed_from_a_room_2919@domain.example.com'>
*** User 2024-04-10 12:56:46.215 ***🔗
bOb_user_is_removed_from_a_room_2919@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-10 12:56:46.215 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<iq type='set' id='43ca4e742e8fb1da02bebdb242ded6e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:56:46.216 ***🔗
bOb_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<iq id='43ca4e742e8fb1da02bebdb242ded6e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_is_removed_from_a_room_2919@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:56:46.216 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<iq type='set' id='6f5c368f38e538568cdc96bd382f94cb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:56:46.218 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_user_is_removed_from_a_room_2919@domain.example.com/res1' id='6f5c368f38e538568cdc96bd382f94cb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:56:46.219 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 12:56:46.222 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<presence from='bob_user_is_removed_from_a_room_2919@domain.example.com/res1' to='bob_user_is_removed_from_a_room_2919@domain.example.com/res1'/>
*** User 2024-04-10 12:56:46.245 ***🔗
REST request:
Code: 201
Req: {<0.76553.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dfd6a3ef1dab6a98">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzI5MTlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:56:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1712-753806-233763\"}">>,156,14298}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"alice_user_is_removed_from_a_room_2919@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
return_headers => true}
*** User 2024-04-10 12:56:46.421 ***🔗
REST request:
Code: 204
Req: {<0.76634.0>,<<"/api/rooms/1712-753806-233763/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ebe4e840407b147b">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzI5MTlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_user_is_removed_from_a_room_2919@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:56:46 GMT">>}],
<<>>,80,108381}
Params: #{path => <<"/api/rooms/1712-753806-233763/users">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"alice_user_is_removed_from_a_room_2919@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_user_is_removed_from_a_room_2919@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-10 12:56:46.421 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<message from='1712-753806-233763@muclight.domain.example.com' to='bob_user_is_removed_from_a_room_2919@domain.example.com' id='f2d29b4d-3a7e-4bef-878a-840ed27a0bb5' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1712-753806-346787</version>
<user affiliation='member'>bob_user_is_removed_from_a_room_2919@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-10 12:56:46.422 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<message from='1712-753806-233763@muclight.domain.example.com' to='alice_user_is_removed_from_a_room_2919@domain.example.com' id='f2d29b4d-3a7e-4bef-878a-840ed27a0bb5' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1712-753806-233753</prev-version>
<version>1712-753806-346787</version>
<user affiliation='member'>bob_user_is_removed_from_a_room_2919@domain.example.com</user>
</x>
<body/>
<stanza-id by='1712-753806-233763@muclight.domain.example.com' id='C5DTI8RDQN01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-10 12:56:46.444 ***🔗
REST request:
Code: 204
Req: {<0.76924.0>,
<<"/api/rooms/1712-753806-233763/users/bob_user_is_removed_from_a_room_2919@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eaa9df153d232f58">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzI5MTlAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:56:46 GMT">>}],
<<>>,80,16237}
Params: #{path =>
<<"/api/rooms/1712-753806-233763/users/bob_user_is_removed_from_a_room_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => client,
creds =>
{<<"alice_user_is_removed_from_a_room_2919@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,return_headers => true}
*** User 2024-04-10 12:56:46.444 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 in
<message from='1712-753806-233763@muclight.domain.example.com' to='bob_user_is_removed_from_a_room_2919@domain.example.com' id='462bc837-fa3c-42af-b69a-ef66b2426acb' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>bob_user_is_removed_from_a_room_2919@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-10 12:56:46.445 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 12:56:46.445 ***🔗
bob_user_is_removed_from_a_room_2919@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-10 12:56:46.445 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 12:56:46.446 ***🔗
alice_user_is_removed_from_a_room_2919@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:56:46
=== successfully completed test case
=== === Returned value: ok