=== Test case: rest_SUITE:session_can_be_kicked/1 (click for source code)
=== Config value:
[{watchdog,<0.12354.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/rest_suite.session_can_be_kicked.32132.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/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@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:33:43
*** User 2022-01-27 15:33:43.183 ***
alicE_session_can_be_kicked_1103@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-01-27 15:33:43.184 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9d81115142f7ea9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.184 ***
alicE_session_can_be_kicked_1103@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-01-27 15:33:43.184 ***
alicE_session_can_be_kicked_1103@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Nlc3Npb25fY2FuX2JlX2tpY2tlZF8xMTAzAG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:33:43.189 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:43.189 ***
alicE_session_can_be_kicked_1103@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-01-27 15:33:43.190 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef23d11522b21664' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:43.190 ***
alicE_session_can_be_kicked_1103@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-01-27 15:33:43.190 ***
alicE_session_can_be_kicked_1103@localhost/res1 out
<iq type='set' id='369f211ea48e009c94f357fcf57fd3dc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:43.190 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<iq id='369f211ea48e009c94f357fcf57fd3dc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_session_can_be_kicked_1103@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:43.191 ***
alicE_session_can_be_kicked_1103@localhost/res1 out
<iq type='set' id='9761be6b659d2f00b7fa600a20d8275b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.191 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<iq type='result' id='9761be6b659d2f00b7fa600a20d8275b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:43.191 ***
alicE_session_can_be_kicked_1103@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:43.192 ***
alicE_session_can_be_kicked_1103@localhost/res1 in
<presence from='alicE_session_can_be_kicked_1103@localhost/res1' to='alice_session_can_be_kicked_1103@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:43.193 ***
REST request:
Code: 200
Req: {<0.12539.1>,<<"/api/sessions/localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2d88c9eae4393a0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"72">>}],
<<"[\"alice_session_can_be_kicked_1103@localhost/res1\",\"bob@localhost/res1\"]">>,
196,480}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/localhost">>,return_headers => true,
role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.195 ***
REST request:
Code: 204
Req: {<0.12545.1>,
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1103/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c34b2fa638444d7">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:42 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,391}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1103/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.195 ***
alicE_session_can_be_kicked_1103@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-01-27 15:33:43.197 ***
REST request:
Code: 200
Req: {<0.12555.1>,<<"/api/sessions/localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be6225c213fce3cd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"170">>}],
<<"[\"alice_messages_are_sent_and_received_1105@localhost/res1\",\"alice_stanzas_are_sent_and_received_1104@localhost/res1\",\"alice_messages_error_handling_1106@localhost/res1\"]">>,
295,486}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/sessions/localhost">>,return_headers => true,
role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:43.199 ***
REST request fails:
Code: 404
Req: {<0.12559.1>,
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1103/res1">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45a165a3a7957dfe">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"17">>}],
<<"no active session">>,148,656}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/sessions/localhost/alicE_session_can_be_kicked_1103/res1">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
=== Ended at 2022-01-27 15:33:43
=== successfully completed test case
=== === Returned value: ok