=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.86848.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@a353ffbc715a.2024-04-16_10.55.10/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.10.51/rest_suite.password_can_be_changed.123908.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@a353ffbc715a.2024-04-16_10.55.10/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.10.51/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_presence => #{},
mod_disco =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
server_info => [],extra_domains => []},
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,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a353ffbc715a.2024-04-16_10.55.10"
=== Started at 2024-04-16 11:10:51
*** User 2024-04-16 11:10:52.022 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.023 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06bfd3ccbe4cd00c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:10:52.023 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.023 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:10:52.028 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:10:52.028 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.070 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1f1ea1c2bcc2d9a' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-16 11:10:52.070 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.070 ***🔗
bOb@localhost/res1 out
<iq type='set' id='fb94ee1fbb97444b9e559a12bcaee458'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:10:52.072 ***🔗
bOb@localhost/res1 in
<iq id='fb94ee1fbb97444b9e559a12bcaee458' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:10:52.072 ***🔗
bob@localhost/res1 out
<iq type='set' id='835d347bf721d27a55c3abf40bd4dae3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.075 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='835d347bf721d27a55c3abf40bd4dae3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.075 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-16 11:10:52.086 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-16 11:10:52.087 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:10:52.088 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-16 11:10:52.095 ***🔗
REST request:
Code: 204
Req: {<0.87136.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4a4650538568dbc">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:10:51 GMT">>}],
<<>>,80,5731}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"niemakrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 11:10:52.096 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.097 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8ed2901aa5a68a1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:10:52.097 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.097 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:10:52.099 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:10:52.099 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.100 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7fbd96a80b5c643e' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-16 11:10:52.100 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.100 ***🔗
bOb@localhost/res1 out
<iq type='set' id='75eb3064be0365b0b16ccd5722060cce'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:10:52.101 ***🔗
bOb@localhost/res1 in
<iq id='75eb3064be0365b0b16ccd5722060cce' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:10:52.101 ***🔗
bob@localhost/res1 out
<iq type='set' id='fd88ee524f2782cc884f653261b4398a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.103 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='fd88ee524f2782cc884f653261b4398a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.103 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-16 11:10:52.107 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-16 11:10:52.107 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:10:52.108 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-16 11:10:52.108 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.109 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e65f4de8cb84914c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:10:52.109 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.109 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:10:52.111 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2024-04-16 11:10:52.177 ***🔗
REST request:
Code: 204
Req: {<0.87170.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb0797e48bf8c48a">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:10:51 GMT">>}],
<<>>,80,4322}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"makrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 11:10:52.178 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.179 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e413cb9ca995883b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:10:52.179 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.179 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:10:52.181 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:10:52.181 ***🔗
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 11:10:52.182 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a16d5970ef3b6e7b' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-16 11:10:52.182 ***🔗
bOb@localhost/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 2024-04-16 11:10:52.182 ***🔗
bOb@localhost/res1 out
<iq type='set' id='64fd759b37b0d8d8b0a8d829208c63d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:10:52.182 ***🔗
bOb@localhost/res1 in
<iq id='64fd759b37b0d8d8b0a8d829208c63d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:10:52.182 ***🔗
bob@localhost/res1 out
<iq type='set' id='0ba193af8491dcfc32862c24f1615a88'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.184 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='0ba193af8491dcfc32862c24f1615a88' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:10:52.184 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-16 11:10:52.188 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-16 11:10:52.188 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:10:52.188 ***🔗
bob@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 11:10:52
=== successfully completed test case
=== === Returned value: ok