=== Test case: rest_SUITE:session_can_be_kicked/1 (click for source code)
=== Config value:
[{watchdog,<0.25535.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/rest_suite.session_can_be_kicked.136450.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/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">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:14:56
*** User 2022-02-02 15:14:56.949 ***
alicE_session_can_be_kicked_1600@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-02-02 15:14:56.950 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='296370359caea8dc' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.950 ***
alicE_session_can_be_kicked_1600@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-02-02 15:14:56.951 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Nlc3Npb25fY2FuX2JlX2tpY2tlZF8xNjAwAG1hdHlncnlzYQ==</auth>
*** User 2022-02-02 15:14:56.955 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:56.955 ***
alicE_session_can_be_kicked_1600@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-02-02 15:14:56.956 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd6932ed52d8332f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.956 ***
alicE_session_can_be_kicked_1600@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-02-02 15:14:56.956 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 out
<iq type='set' id='a3d3985a610b7002eafadc257552c570'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:56.956 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<iq id='a3d3985a610b7002eafadc257552c570' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_session_can_be_kicked_1600@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:56.956 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 out
<iq type='set' id='8085b580c22b07727d38ea8901b0ccf0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.957 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<iq type='result' id='8085b580c22b07727d38ea8901b0ccf0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.957 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:56.959 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<presence from='alicE_session_can_be_kicked_1600@domain.example.com/res1' to='alice_session_can_be_kicked_1600@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:56.961 ***
REST request:
Code: 200
Req: {<0.25720.1>,<<"/api/sessions/domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6aff82dad1238837">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"256">>}],
<<"[\"alice_messages_error_handling_1601@domain.example.com/res1\",\"alice_stanzas_are_sent_and_received_1603@domain.example.com/res1\",\"alice_messages_are_sent_and_received_1602@domain.example.com/res1\",\"alice_session_can_be_kicked_1600@domain.example.com/res1\"]">>,
381,507}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.963 ***
REST request:
Code: 204
Req: {<0.25727.1>,
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1600/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77cda155c9aebea7">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,451}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1600/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.963 ***
alicE_session_can_be_kicked_1600@domain.example.com/res1 in
<stream:error>
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
<text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>kicked</text>
</stream:error>
*** User 2022-02-02 15:14:56.964 ***
REST request:
Code: 200
Req: {<0.25733.1>,<<"/api/sessions/domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e9b0a737dda155f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"378">>}],
<<"[\"alice_messages_can_be_paginated_1605@domain.example.com/res1\",\"alice_messages_error_handling_1601@domain.example.com/res1\",\"alice_stanzas_are_sent_and_received_1603@domain.example.com/res1\",\"alice_messages_are_sent_and_received_1602@domain.example.com/res1\",\"bob_messages_error_handling_1601@domain.example.com/res1\",\"alice_messages_are_archived_1604@domain.example.com/res1\"]">>,
503,463}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.967 ***
REST request fails:
Code: 404
Req: {<0.25741.1>,
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1600/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af9ca8f27714127c">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"17">>}],
<<"no active session">>,148,799}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1600/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2022-02-02 15:14:56
=== successfully completed test case
=== === Returned value: ok