=== Test case: rest_SUITE:session_can_be_kicked/1 (click for source code)
=== Config value:
[{watchdog,<0.13879.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/rest_suite.session_can_be_kicked.52355.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:38:08
*** User 2022-03-03 10:38:08.248 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.248 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='40c62d3f8ffa1c91' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.248 ***
alicE_session_can_be_kicked_1282@localhost/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>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-03-03 10:38:08.248 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Nlc3Npb25fY2FuX2JlX2tpY2tlZF8xMjgyAG1hdHlncnlzYQ==</auth>
*** User 2022-03-03 10:38:08.251 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:08.251 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.251 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d100a8c47b6d522c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.252 ***
alicE_session_can_be_kicked_1282@localhost/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-03-03 10:38:08.252 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<iq type='set' id='8f6765c875ab6bc091e60f2f89d61d95'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:08.252 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<iq id='8f6765c875ab6bc091e60f2f89d61d95' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_session_can_be_kicked_1282@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:08.252 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<iq type='set' id='5ab185f14d30c5cccc9b12dc566a838c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.252 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<iq type='result' id='5ab185f14d30c5cccc9b12dc566a838c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.253 ***
alicE_session_can_be_kicked_1282@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:08.254 ***
alicE_session_can_be_kicked_1282@localhost/res1 in
<presence from='alicE_session_can_be_kicked_1282@localhost/res1' to='alice_session_can_be_kicked_1282@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:08.256 ***
REST request:
Code: 200
Req: {<0.14057.1>,<<"/api/sessions/localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b29de16d56e57a6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"51">>}],
<<"[\"alice_session_can_be_kicked_1282@localhost/res1\"]">>,175,564}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/localhost">>,return_headers => true,
role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.257 ***
REST request:
Code: 204
Req: {<0.14066.1>,
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1282/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c941910bcbab90c">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,516}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1282/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.257 ***
alicE_session_can_be_kicked_1282@localhost/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-03-03 10:38:08.259 ***
REST request:
Code: 200
Req: {<0.14075.1>,<<"/api/sessions/localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f422f9d6efa95f2c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"170">>}],
<<"[\"alice_stanzas_are_sent_and_received_1285@localhost/res1\",\"alice_messages_are_sent_and_received_1283@localhost/res1\",\"alice_messages_error_handling_1284@localhost/res1\"]">>,
295,450}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/localhost">>,return_headers => true,
role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.261 ***
REST request fails:
Code: 404
Req: {<0.14082.1>,
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1282/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2684f53869457596">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"17">>}],
<<"No active session">>,148,705}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1282/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2022-03-03 10:38:08
=== successfully completed test case
=== === Returned value: ok