=== Test case: rest_SUITE:password_can_be_changed/1 (click for source code)

=== Config value:

    [{watchdog,<0.85383.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@3709086d5689.2024-02-27_12.00.42/big_tests.tests.rest_SUITE.logs/run.2024-02-27_12.17.01/rest_suite.password_can_be_changed.159363.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@3709086d5689.2024-02-27_12.00.42/big_tests.tests.rest_SUITE.logs/run.2024-02-27_12.17.01/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_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 =>
            #{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_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}},
     {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@3709086d5689.2024-02-27_12.00.42"

=== Started at 2024-02-27 12:17:01


*** CT 2024-02-27 12:17:01.993 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4842.html

*** User 2024-02-27 12:17:02.012 ***🔗
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-27 12:17:02.012 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b210c4162261d51' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.012 ***🔗
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-02-27 12:17:02.012 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:17:02.015 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:17:02.016 ***🔗
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-27 12:17:02.017 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92ef332e52e7f084' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-02-27 12:17:02.017 ***🔗
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-27 12:17:02.017 ***🔗
bOb@localhost/res1 out
<iq type='set' id='894855e58bf7409c6e6cee2d9ee0f36f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.063 ***🔗
bOb@localhost/res1 in
<iq id='894855e58bf7409c6e6cee2d9ee0f36f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.063 ***🔗
bob@localhost/res1 out
<iq type='set' id='953b609dc95bd4242f2ec3476dce6c23'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.064 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='953b609dc95bd4242f2ec3476dce6c23' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.065 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-02-27 12:17:02.069 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-02-27 12:17:02.069 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:17:02.070 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-02-27 12:17:02.106 ***🔗
REST request:
Code: 204
Req: {<0.85623.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82b554933c7003e8">>}],
      <<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:01 GMT">>}],
         <<>>,80,34792}
Params: #{path => <<"/api/users/localhost/bob">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"newpass\":\"niemakrolika\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.106 ***🔗
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-27 12:17:02.107 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2488576bf34b0fd8' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.107 ***🔗
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-02-27 12:17:02.107 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:17:02.164 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:17:02.164 ***🔗
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-27 12:17:02.165 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e43780302e7c194f' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-02-27 12:17:02.165 ***🔗
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-27 12:17:02.165 ***🔗
bOb@localhost/res1 out
<iq type='set' id='0ddb5088419b75a5dbe6d2434724f892'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.165 ***🔗
bOb@localhost/res1 in
<iq id='0ddb5088419b75a5dbe6d2434724f892' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.165 ***🔗
bob@localhost/res1 out
<iq type='set' id='63e5c66b395bce1d721d7470c4085b8c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.166 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='63e5c66b395bce1d721d7470c4085b8c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.167 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-02-27 12:17:02.177 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-02-27 12:17:02.177 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:17:02.177 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-02-27 12:17:02.179 ***🔗
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-27 12:17:02.179 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6da3da8dfba4a7e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.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-02-27 12:17:02.179 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:17:02.183 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
	<not-authorized/>
</failure>


*** CT 2024-02-27 12:17:02.185 *** Stanza Log:🔗 password_can_be_changed.xml

*** User 2024-02-27 12:17:02.190 ***🔗
REST request:
Code: 204
Req: {<0.85707.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef633bd368cb3f1f">>}],
      <<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:01 GMT">>}],
         <<>>,80,3824}
Params: #{path => <<"/api/users/localhost/bob">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"newpass\":\"makrolika\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.190 ***🔗
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-27 12:17:02.191 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='632d3bd5ba9f9631' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.191 ***🔗
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-02-27 12:17:02.191 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:17:02.192 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:17:02.192 ***🔗
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-27 12:17:02.192 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00622ae2e724615b' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-02-27 12:17:02.192 ***🔗
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-27 12:17:02.193 ***🔗
bOb@localhost/res1 out
<iq type='set' id='03655bc0e99e4106159277127275e02f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.198 ***🔗
bOb@localhost/res1 in
<iq id='03655bc0e99e4106159277127275e02f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.198 ***🔗
bob@localhost/res1 out
<iq type='set' id='426ffdd2ef4b0fdbd0f237c7e89d5b1c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.198 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='426ffdd2ef4b0fdbd0f237c7e89d5b1c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.199 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-02-27 12:17:02.199 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-02-27 12:17:02.200 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:17:02.200 ***🔗
bob@localhost/res1 in
</stream:stream>
*** CT 2024-02-27 12:17:02.221 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4883.html



=== Ended at 2024-02-27 12:17:02
=== successfully completed test case
=== === Returned value: ok