=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.81523.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_SUITE.logs/run.2024-04-18_11.09.55/rest_suite.password_can_be_changed.150531.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_SUITE.logs/run.2024-04-18_11.09.55/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_amp => #{},
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 => cets,
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 => cets,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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:09:55
*** User 2024-04-18 11:09:55.770 ***🔗
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-18 11:09:55.771 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d3da0b61c7202613' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:09:55.771 ***🔗
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-18 11:09:55.771 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:09:55.773 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:09:55.773 ***🔗
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-18 11:09:55.774 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d1f21a062671257' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-18 11:09:55.774 ***🔗
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-18 11:09:55.774 ***🔗
bOb@localhost/res1 out
<iq type='set' id='59a2405a433b6028ef4bd5c7cbb77eef'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:09:55.775 ***🔗
bOb@localhost/res1 in
<iq id='59a2405a433b6028ef4bd5c7cbb77eef' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:09:55.775 ***🔗
bob@localhost/res1 out
<iq type='set' id='0856dcb5329f0fae3d975a0942220763'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.776 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='0856dcb5329f0fae3d975a0942220763' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.776 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-18 11:09:55.780 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-18 11:09:55.780 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:09:55.781 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:09:55.786 ***🔗
REST request:
Code: 204
Req: {<0.81773.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"69b07f119f440fc7">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
<<>>,80,3982}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"newpass\":\"niemakrolika\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:09:55.787 ***🔗
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-18 11:09:55.788 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='860c78828d70c6d0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:09:55.788 ***🔗
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-18 11:09:55.788 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:09:55.789 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:09:55.790 ***🔗
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-18 11:09:55.790 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f32f9b15555e03e' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-18 11:09:55.790 ***🔗
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-18 11:09:55.790 ***🔗
bOb@localhost/res1 out
<iq type='set' id='d00a8c93b6529261330a09935d8cc836'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:09:55.790 ***🔗
bOb@localhost/res1 in
<iq id='d00a8c93b6529261330a09935d8cc836' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:09:55.790 ***🔗
bob@localhost/res1 out
<iq type='set' id='c90f4e1ac9254d5664840b28a0fce732'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.791 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='c90f4e1ac9254d5664840b28a0fce732' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.791 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-18 11:09:55.850 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-18 11:09:55.850 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:09:55.851 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:09:55.852 ***🔗
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-18 11:09:55.852 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e04ef55c739d8d3f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:09:55.852 ***🔗
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-18 11:09:55.852 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:09:55.854 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2024-04-18 11:09:55.860 ***🔗
REST request:
Code: 204
Req: {<0.81835.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6de96229396b3f55">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
<<>>,80,3242}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"newpass\":\"makrolika\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:09:55.860 ***🔗
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-18 11:09:55.860 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7f86c81cb29e31fd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:09:55.860 ***🔗
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-18 11:09:55.861 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:09:55.862 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:09:55.862 ***🔗
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-18 11:09:55.862 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cfee1411e641f1dd' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-04-18 11:09:55.862 ***🔗
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-18 11:09:55.862 ***🔗
bOb@localhost/res1 out
<iq type='set' id='7a762807d75adc09841ead0b8e5bdbb0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:09:55.863 ***🔗
bOb@localhost/res1 in
<iq id='7a762807d75adc09841ead0b8e5bdbb0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:09:55.863 ***🔗
bob@localhost/res1 out
<iq type='set' id='17c1c16e979b9b5e32aa435016b52bc0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.864 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='17c1c16e979b9b5e32aa435016b52bc0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:09:55.864 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-04-18 11:09:55.866 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-04-18 11:09:55.866 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:09:55.867 ***🔗
bob@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-18 11:09:55
=== successfully completed test case
=== === Returned value: ok