=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.88022.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.45.43/rest_suite.password_can_be_changed.159747.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@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.45.43/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_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_amp => #{},mod_presence => #{},
mod_disco =>
#{server_info => [],iqdisc => one_queue,extra_domains => [],
users_can_see_hidden_services => false},
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@3137d4b2a3a4.2024-04-22_17.28.36"
=== Started at 2024-04-22 17:45:44
*** User 2024-04-22 17:45:44.341 ***🔗
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-22 17:45:44.342 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='288af312e233912d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.343 ***🔗
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-22 17:45:44.343 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 17:45:44.346 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:44.346 ***🔗
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-22 17:45:44.346 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec78966302498c85' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-22 17:45:44.346 ***🔗
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-22 17:45:44.347 ***🔗
bOb@localhost/res1 out
<iq type='set' id='3a353da61a79e28ae7b4622eefd4aa6a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:44.347 ***🔗
bOb@localhost/res1 in
<iq id='3a353da61a79e28ae7b4622eefd4aa6a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:44.347 ***🔗
bob@localhost/res1 out
<iq type='set' id='6eedbb477a9beb35883a011f144534a5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.349 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='6eedbb477a9beb35883a011f144534a5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.349 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:44.353 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-22 17:45:44.353 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:44.354 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:45:44.360 ***🔗
REST request:
Code: 204
Req: {<0.88251.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2d247b8fbcd3f02">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:43 GMT">>}],
<<>>,80,4655}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"newpass\":\"niemakrolika\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.361 ***🔗
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-22 17:45:44.362 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='785cb66c6794b5bd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.362 ***🔗
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-22 17:45:44.362 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2024-04-22 17:45:44.363 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:44.364 ***🔗
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-22 17:45:44.364 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9fc709d0b4274a10' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-22 17:45:44.365 ***🔗
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-22 17:45:44.365 ***🔗
bOb@localhost/res1 out
<iq type='set' id='9ab372699a09419f3ff78593820f8c5a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:44.366 ***🔗
bOb@localhost/res1 in
<iq id='9ab372699a09419f3ff78593820f8c5a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:44.366 ***🔗
bob@localhost/res1 out
<iq type='set' id='efdc017df219325f11c7418e5c1adad0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.367 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='efdc017df219325f11c7418e5c1adad0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.367 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:44.370 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-22 17:45:44.370 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:44.371 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:45:44.371 ***🔗
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-22 17:45:44.371 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffcb40e62376e6fa' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.372 ***🔗
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-22 17:45:44.372 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 17:45:44.373 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2024-04-22 17:45:44.445 ***🔗
REST request:
Code: 204
Req: {<0.88328.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8ca505af5b8baa2d">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:43 GMT">>}],
<<>>,80,3589}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"newpass\":\"makrolika\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.446 ***🔗
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-22 17:45:44.446 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1754c9b477aef1be' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.446 ***🔗
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-22 17:45:44.446 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 17:45:44.449 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:44.450 ***🔗
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-22 17:45:44.450 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d5ee9e7e2f32c7b' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-22 17:45:44.451 ***🔗
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-22 17:45:44.451 ***🔗
bOb@localhost/res1 out
<iq type='set' id='67fbff95c2cbb2a62bf468b8e52aa5ca'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:44.451 ***🔗
bOb@localhost/res1 in
<iq id='67fbff95c2cbb2a62bf468b8e52aa5ca' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:44.451 ***🔗
bob@localhost/res1 out
<iq type='set' id='d5ab69b32912f2ba741157892163a571'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.452 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='d5ab69b32912f2ba741157892163a571' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.452 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:44.454 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-22 17:45:44.455 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:44.455 ***🔗
bob@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 17:45:44
=== successfully completed test case
=== === Returned value: ok