=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)
=== Config value:
[{watchdog,<0.51895.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.rest_SUITE.logs/run.2024-02-23_08.46.35/rest_suite.password_can_be_changed.19973.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.rest_SUITE.logs/run.2024-02-23_08.46.35/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,
ldap =>
#{filter => <<"(objectClass=inetOrgPerson)">>,
base => <<"ou=Users,dc=esl,dc=com">>,
uids => [{<<"uid">>,<<"%u">>}],
search_fields =>
[{<<"User">>,<<"%u">>},
{<<"Full Name">>,<<"displayName">>},
{<<"Given Name">>,<<"givenName">>},
{<<"Middle Name">>,<<"initials">>},
{<<"Family Name">>,<<"sn">>},
{<<"Nickname">>,<<"%u">>},
{<<"Birthday">>,<<"birthDay">>},
{<<"Country">>,<<"c">>},
{<<"City">>,<<"l">>},
{<<"Email">>,<<"mail">>},
{<<"Organization Name">>,<<"o">>},
{<<"Organization Unit">>,<<"ou">>}],
pool_tag => default,deref => never,
vcard_map =>
[{<<"NICKNAME">>,<<"%u">>,[]},
{<<"FN">>,<<"%s">>,[<<"displayName">>]},
{<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
{<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
{<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
{<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
{<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
{<<"CTRY">>,<<"%s">>,[<<"c">>]},
{<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
{<<"STREET">>,<<"%s">>,[<<"street">>]},
{<<"REGION">>,<<"%s">>,[<<"st">>]},
{<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
{<<"TITLE">>,<<"%s">>,[<<"title">>]},
{<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
{<<"DESC">>,<<"%s">>,[<<"description">>]},
{<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
{<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
{<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
{<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
{<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
search_reported =>
[{<<"Full Name">>,<<"FN">>},
{<<"Given Name">>,<<"FIRST">>},
{<<"Middle Name">>,<<"MIDDLE">>},
{<<"Family Name">>,<<"LAST">>},
{<<"Nickname">>,<<"NICK">>},
{<<"Birthday">>,<<"BDAY">>},
{<<"Country">>,<<"CTRY">>},
{<<"City">>,<<"LOCALITY">>},
{<<"Email">>,<<"EMAIL">>},
{<<"Organization Name">>,<<"ORGNAME">>},
{<<"Organization Unit">>,<<"ORGUNIT">>}],
search_operator => 'and',binary_search_fields => []},
backend => ldap,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,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 =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@6ebac22519b0.2024-02-23_08.34.56"
=== Started at 2024-02-23 08:46:35
*** User 2024-02-23 08:46:35.432 ***🔗
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-02-23 08:46:35.433 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b09d8be56b1a9603' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.433 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.433 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:46:35.434 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:46:35.434 ***🔗
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-02-23 08:46:35.435 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9f28aeacc64a3b49' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-02-23 08:46:35.435 ***🔗
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-02-23 08:46:35.435 ***🔗
bOb@localhost/res1 out
<iq type='set' id='375a5629d957e0ae0e6677f428286fcc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:46:35.436 ***🔗
bOb@localhost/res1 in
<iq id='375a5629d957e0ae0e6677f428286fcc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:46:35.436 ***🔗
bob@localhost/res1 out
<iq type='set' id='27b00c242e7eb38ab2c0022150070d96'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.436 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='27b00c242e7eb38ab2c0022150070d96' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.437 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-02-23 08:46:35.437 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-02-23 08:46:35.437 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:46:35.438 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-02-23 08:46:35.441 ***🔗
REST request:
Code: 204
Req: {<0.52103.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"693721d8f9b49af2">>}],
<<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,2128}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"niemakrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.442 ***🔗
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-02-23 08:46:35.442 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8a3fe4aed6f89066' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.442 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.443 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:46:35.444 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:46:35.444 ***🔗
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-02-23 08:46:35.445 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c9e3a84fbec7bf6' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-02-23 08:46:35.445 ***🔗
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-02-23 08:46:35.445 ***🔗
bOb@localhost/res1 out
<iq type='set' id='ae82f40b2185565c345d02635ef48ffa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:46:35.445 ***🔗
bOb@localhost/res1 in
<iq id='ae82f40b2185565c345d02635ef48ffa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:46:35.445 ***🔗
bob@localhost/res1 out
<iq type='set' id='176d685e835d54c7176944177163b2bf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.446 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='176d685e835d54c7176944177163b2bf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.446 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-02-23 08:46:35.447 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-02-23 08:46:35.447 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:46:35.447 ***🔗
bob@localhost/res1 in
</stream:stream>
*** User 2024-02-23 08:46:35.448 ***🔗
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-02-23 08:46:35.448 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='811e8e573e5b6fa9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.449 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.449 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:46:35.450 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<not-authorized/>
</failure>
*** User 2024-02-23 08:46:35.500 ***🔗
REST request:
Code: 204
Req: {<0.52183.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0924f8ae2f4a3a37">>}],
<<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1926}
Params: #{path => <<"/api/users/localhost/bob">>,
server => #{node => mongooseim@localhost},
body => <<"{\"newpass\":\"makrolika\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.501 ***🔗
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-02-23 08:46:35.501 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ab4337fa7217aac0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.501 ***🔗
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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.501 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:46:35.502 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:46:35.502 ***🔗
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-02-23 08:46:35.502 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='714e2668e2229451' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>
*** User 2024-02-23 08:46:35.503 ***🔗
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-02-23 08:46:35.503 ***🔗
bOb@localhost/res1 out
<iq type='set' id='b3ce3f94f9e9722980133870e4a1912f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:46:35.503 ***🔗
bOb@localhost/res1 in
<iq id='b3ce3f94f9e9722980133870e4a1912f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:46:35.503 ***🔗
bob@localhost/res1 out
<iq type='set' id='09662044e8421faed460d55b0a005309'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.504 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='09662044e8421faed460d55b0a005309' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.504 ***🔗
bob@localhost/res1 out
<presence/>
*** User 2024-02-23 08:46:35.504 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>
*** User 2024-02-23 08:46:35.504 ***🔗
bob@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:46:35.504 ***🔗
bob@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-23 08:46:35
=== successfully completed test case
=== === Returned value: ok