=== Test case: rest_SUITE:session_can_be_kicked/1 (click for source code)
=== Config value:
[{watchdog,<0.24874.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,"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.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.session_can_be_kicked.120962.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:31
*** User 2022-01-27 12:36:31.299 ***
alicE_session_can_be_kicked_1728@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:36:31.299 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0f3079f930a02506' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.300 ***
alicE_session_can_be_kicked_1728@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:36:31.300 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Nlc3Npb25fY2FuX2JlX2tpY2tlZF8xNzI4AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 12:36:31.310 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:31.310 ***
alicE_session_can_be_kicked_1728@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:36:31.311 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='025ea54839577670' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.311 ***
alicE_session_can_be_kicked_1728@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:36:31.311 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 out
<iq type='set' id='940b3341ec2f67944f9adeb0df357680'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:31.334 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<iq id='940b3341ec2f67944f9adeb0df357680' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_session_can_be_kicked_1728@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:31.334 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 out
<iq type='set' id='4b98404e3e218c98ed82402b6df056de'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.335 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<iq type='result' id='4b98404e3e218c98ed82402b6df056de'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.335 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:31.338 ***
alicE_session_can_be_kicked_1728@domain.example.com/res1 in
<presence from='alicE_session_can_be_kicked_1728@domain.example.com/res1' to='alice_session_can_be_kicked_1728@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:31.347 ***
REST request:
Code: 200
Req: {<0.25073.1>,<<"/api/sessions/domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c73d753f19d953b9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"476">>}],
<<"[\"alice_messages_are_archived_1731@domain.example.com/res1\",\"alice_messages_error_handling_1732@domain.example.com/res1\",\"alice@domain.example.com/res1\",\"alice_session_can_be_kicked_1728@domain.example.com/res1\",\"alice_stanzas_are_sent_and_received_1730@domain.example.com/res1\",\"bob_messages_are_sent_and_received_1729@domain.example.com/res1\",\"alice_messages_are_sent_and_received_1729@domain.example.com/res1\",\"alice_messages_can_be_paginated_1733@domain.example.com/res1\"]">>,
601,643}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.352 ***
REST request:
Code: 204
Req: {<0.25083.1>,
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1728/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"adaf98a6a92ef33d">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2588}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1728/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.352 ***
alicE_session_can_be_kicked_1728@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-01-27 12:36:31.355 ***
REST request:
Code: 200
Req: {<0.25087.1>,<<"/api/sessions/domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a6dcd27d46829d20">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"505">>}],
<<"[\"alice_messages_are_archived_1731@domain.example.com/res1\",\"alice_messages_error_handling_1732@domain.example.com/res1\",\"bob_messages_can_be_paginated_1733@domain.example.com/res1\",\"alice_stanzas_are_sent_and_received_1730@domain.example.com/res1\",\"bob_messages_are_sent_and_received_1729@domain.example.com/res1\",\"alice_messages_are_sent_and_received_1729@domain.example.com/res1\",\"bob_messages_error_handling_1732@domain.example.com/res1\",\"alice_messages_can_be_paginated_1733@domain.example.com/res1\"]">>,
630,890}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.359 ***
REST request fails:
Code: 404
Req: {<0.25090.1>,
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1728/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"510f71f310e045fa">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"17">>}],
<<"no active session">>,148,2463}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/domain.example.com/alicE_session_can_be_kicked_1728/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2022-01-27 12:36:31
=== successfully completed test case
=== === Returned value: ok