=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.70524.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_SUITE.logs/run.2023-12-07_07.57.47/rest_suite.password_can_be_changed.97796.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_SUITE.logs/run.2023-12-07_07.57.47/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{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@d3b7dd7159a8.2023-12-07_07.46.41"
=== Started at 2023-12-07 07:57:47
*** User 2023-12-07 07:57:47.338 ***🔗
bOb@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 2023-12-07 07:57:47.339 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad37531565dc75c4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:47.339 ***🔗
bOb@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 2023-12-07 07:57:47.339 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-12-07 07:57:47.341 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:57:47.341 ***🔗
bOb@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 2023-12-07 07:57:47.342 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8c0b8ab859d0b36' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-12-07 07:57:47.342 ***🔗
bOb@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 2023-12-07 07:57:47.342 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='c09de9621ff6da218e4508246f07fa64'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:57:47.342 ***🔗
bOb@domain.example.com/res1 in
<iq id='c09de9621ff6da218e4508246f07fa64' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:57:47.343 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='0807ab7ce13c65d0c3d4cb98f7575509'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.345 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='0807ab7ce13c65d0c3d4cb98f7575509' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.345 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:47.354 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-12-07 07:57:47.354 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:57:47.354 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
*** User 2023-12-07 07:57:47.358 ***🔗
REST request:
Code: 204
Req: {<0.70810.0>,<<"/api/users/domain.example.com/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92a66f72798a84a6">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:57:46 GMT">>}],
<<>>,80,2286}
Params: #{path => <<"/api/users/domain.example.com/bob">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"newpass\":\"niemakrolika\"}">>,return_headers => true}
*** User 2023-12-07 07:57:47.360 ***🔗
bOb@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 2023-12-07 07:57:47.360 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7efcc3efc164fcf5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:47.360 ***🔗
bOb@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 2023-12-07 07:57:47.360 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2023-12-07 07:57:47.362 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:57:47.362 ***🔗
bOb@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 2023-12-07 07:57:47.362 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4519739a779ceee' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-12-07 07:57:47.362 ***🔗
bOb@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 2023-12-07 07:57:47.362 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='01688d6befd76606409151a69b26be89'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:57:47.362 ***🔗
bOb@domain.example.com/res1 in
<iq id='01688d6befd76606409151a69b26be89' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:57:47.362 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='d2824c03c61610ea6706fd0892e472ff'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.363 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='d2824c03c61610ea6706fd0892e472ff' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.363 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:47.425 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-12-07 07:57:47.425 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:57:47.425 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
*** User 2023-12-07 07:57:47.427 ***🔗
bOb@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 2023-12-07 07:57:47.427 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='178968ad1b16d402' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:47.427 ***🔗
bOb@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 2023-12-07 07:57:47.427 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-12-07 07:57:47.429 ***🔗
bOb@domain.example.com/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2023-12-07 07:57:47.432 ***🔗
REST request:
Code: 204
Req: {<0.70852.0>,<<"/api/users/domain.example.com/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba29d89c3b34317e">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Dec 2023 07:57:46 GMT">>}],
<<>>,80,1984}
Params: #{path => <<"/api/users/domain.example.com/bob">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"newpass\":\"makrolika\"}">>,return_headers => true}
*** User 2023-12-07 07:57:47.433 ***🔗
bOb@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 2023-12-07 07:57:47.433 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='746cf1f5666ee767' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:47.434 ***🔗
bOb@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 2023-12-07 07:57:47.434 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-12-07 07:57:47.435 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:57:47.435 ***🔗
bOb@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 2023-12-07 07:57:47.435 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='814bd6184b7bd222' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-12-07 07:57:47.435 ***🔗
bOb@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 2023-12-07 07:57:47.436 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='0bfaca10d22a0a43937da9f539d719c8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:57:47.436 ***🔗
bOb@domain.example.com/res1 in
<iq id='0bfaca10d22a0a43937da9f539d719c8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:57:47.436 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='2a168f1302227fe3c3d879741d5e324e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.436 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='2a168f1302227fe3c3d879741d5e324e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:47.437 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:47.438 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-12-07 07:57:47.438 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:57:47.438 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-12-07 07:57:47
=== successfully completed test case
=== === Returned value: ok