=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.70496.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_SUITE.logs/run.2023-11-14_11.54.22/rest_suite.password_can_be_changed.137219.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_SUITE.logs/run.2023-11-14_11.54.22/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_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_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@a2fc54846062.2023-11-14_11.38.11"
=== Started at 2023-11-14 11:54:22
*** User 2023-11-14 11:54:22.676 ***🔗
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-11-14 11:54:22.677 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fa05905db0119128' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:22.678 ***🔗
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-11-14 11:54:22.678 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-11-14 11:54:22.682 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:22.682 ***🔗
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-11-14 11:54:22.683 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a58eb90f9710cdb3' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-11-14 11:54:22.683 ***🔗
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-11-14 11:54:22.683 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='8f834e3014c1169a9b65fbb0d48a96ed'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:22.684 ***🔗
bOb@domain.example.com/res1 in
<iq id='8f834e3014c1169a9b65fbb0d48a96ed' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:22.684 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='c2170f2dc9a8a793a35aebf39ea9ddf5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.684 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='c2170f2dc9a8a793a35aebf39ea9ddf5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.685 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:22.690 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-11-14 11:54:22.690 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:22.691 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:22.699 ***🔗
REST request:
Code: 204
Req: {<0.70738.0>,<<"/api/users/domain.example.com/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"74b9d6b0c734fb96">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:21 GMT">>}],
<<>>,80,6496}
Params: #{path => <<"/api/users/domain.example.com/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"niemakrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2023-11-14 11:54:22.700 ***🔗
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-11-14 11:54:22.701 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8e261f78fc3adf59' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:22.701 ***🔗
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-11-14 11:54:22.701 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2023-11-14 11:54:22.704 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:22.705 ***🔗
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-11-14 11:54:22.705 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4387a6d5db489a3c' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-11-14 11:54:22.705 ***🔗
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-11-14 11:54:22.706 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='92e3e962d346252bac030098b5633c22'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:22.706 ***🔗
bOb@domain.example.com/res1 in
<iq id='92e3e962d346252bac030098b5633c22' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:22.706 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='1379c6f6f545bf4eaed19a45ff0cfafc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.707 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='1379c6f6f545bf4eaed19a45ff0cfafc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.707 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:22.709 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-11-14 11:54:22.709 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:22.710 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:22.768 ***🔗
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-11-14 11:54:22.768 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da96e64be7ca81f1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:22.769 ***🔗
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-11-14 11:54:22.769 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-11-14 11:54:22.773 ***🔗
bOb@domain.example.com/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2023-11-14 11:54:22.779 ***🔗
REST request:
Code: 204
Req: {<0.70809.0>,<<"/api/users/domain.example.com/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1a4ac8e6c4eeda71">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:21 GMT">>}],
<<>>,80,2871}
Params: #{path => <<"/api/users/domain.example.com/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"makrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2023-11-14 11:54:22.780 ***🔗
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-11-14 11:54:22.780 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c700bfe4268a131d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:22.780 ***🔗
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-11-14 11:54:22.780 ***🔗
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2023-11-14 11:54:22.781 ***🔗
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:22.781 ***🔗
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-11-14 11:54:22.782 ***🔗
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec60272a5ac1eeac' from='domain.example.com' version='1.0' xml:lang='en' to='bob@domain.example.com'>
*** User 2023-11-14 11:54:22.782 ***🔗
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-11-14 11:54:22.783 ***🔗
bOb@domain.example.com/res1 out
<iq type='set' id='5026fc53e3d98ecdf790c95500f99508'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:22.783 ***🔗
bOb@domain.example.com/res1 in
<iq id='5026fc53e3d98ecdf790c95500f99508' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:22.783 ***🔗
bob@domain.example.com/res1 out
<iq type='set' id='1efdead900077b3d1276b70f164839bd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.783 ***🔗
bob@domain.example.com/res1 in
<iq from='domain.example.com' to='bob@domain.example.com/res1' id='1efdead900077b3d1276b70f164839bd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:22.784 ***🔗
bob@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:22.785 ***🔗
bob@domain.example.com/res1 in
<presence from='bob@domain.example.com/res1' to='bob@domain.example.com/res1'/>
*** User 2023-11-14 11:54:22.785 ***🔗
bob@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:22.786 ***🔗
bob@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-14 11:54:22
=== successfully completed test case
=== === Returned value: ok