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

=== Config value:

    [{watchdog,<0.86832.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@05f0dc6787e0.2024-03-20_08.12.54/big_tests.tests.rest_SUITE.logs/run.2024-03-20_08.31.00/rest_suite.password_can_be_changed.128516.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@05f0dc6787e0.2024-03-20_08.12.54/big_tests.tests.rest_SUITE.logs/run.2024-03-20_08.31.00/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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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@05f0dc6787e0.2024-03-20_08.12.54"

=== Started at 2024-03-20 08:31:00


*** CT 2024-03-20 08:31:00.729 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5363.html

*** User 2024-03-20 08:31:00.750 ***🔗
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-03-20 08:31:00.751 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='179e028c8e5037e5' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-20 08:31:00.751 ***🔗
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-03-20 08:31:00.751 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-03-20 08:31:00.807 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-20 08:31:00.807 ***🔗
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-03-20 08:31:00.808 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eebfaf338e7606cb' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-03-20 08:31:00.808 ***🔗
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-03-20 08:31:00.808 ***🔗
bOb@localhost/res1 out
<iq type='set' id='39ba1cd036b9f68a3e33fd22c872fa6e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.809 ***🔗
bOb@localhost/res1 in
<iq id='39ba1cd036b9f68a3e33fd22c872fa6e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.810 ***🔗
bob@localhost/res1 out
<iq type='set' id='798ebf74de8569e8e4e204c6ec53a093'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.811 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='798ebf74de8569e8e4e204c6ec53a093' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.811 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-03-20 08:31:00.816 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-03-20 08:31:00.816 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-03-20 08:31:00.816 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-03-20 08:31:00.834 ***🔗
REST request:
Code: 204
Req: {<0.87095.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef186e11cdcb3d18">>}],
      <<"{\"newpass\":\"niemakrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 08:31:00 GMT">>}],
         <<>>,80,14971}
Params: #{path => <<"/api/users/localhost/bob">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"newpass\":\"niemakrolika\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-20 08:31:00.835 ***🔗
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-03-20 08:31:00.835 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bba05eb93c731b23' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-20 08:31:00.836 ***🔗
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-03-20 08:31:00.836 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBuaWVtYWtyb2xpa2E=</auth>



*** User 2024-03-20 08:31:00.838 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-20 08:31:00.838 ***🔗
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-03-20 08:31:00.838 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66404f3e12357b4b' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-03-20 08:31:00.838 ***🔗
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-03-20 08:31:00.838 ***🔗
bOb@localhost/res1 out
<iq type='set' id='a0200e518e9775f20423984da0858e8d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.838 ***🔗
bOb@localhost/res1 in
<iq id='a0200e518e9775f20423984da0858e8d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.839 ***🔗
bob@localhost/res1 out
<iq type='set' id='2fd9d1daf9324d053678d26774932b6b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.839 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='2fd9d1daf9324d053678d26774932b6b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.839 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-03-20 08:31:00.907 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-03-20 08:31:00.907 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-03-20 08:31:00.908 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2024-03-20 08:31:00.908 ***🔗
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-03-20 08:31:00.909 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='61d911b80208885c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-20 08:31:00.909 ***🔗
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-03-20 08:31:00.909 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-03-20 08:31:00.911 ***🔗
bOb@localhost/res1 in
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
	<not-authorized/>
</failure>


*** CT 2024-03-20 08:31:00.914 *** Stanza Log:🔗 password_can_be_changed.xml

*** User 2024-03-20 08:31:00.921 ***🔗
REST request:
Code: 204
Req: {<0.87143.0>,<<"/api/users/localhost/bob">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7658c12465b77458">>}],
      <<"{\"newpass\":\"makrolika\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 08:31:00 GMT">>}],
         <<>>,80,5310}
Params: #{path => <<"/api/users/localhost/bob">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"newpass\":\"makrolika\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-20 08:31:00.922 ***🔗
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-03-20 08:31:00.922 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9ae0700ce9383bd' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-20 08:31:00.923 ***🔗
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-03-20 08:31:00.923 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2024-03-20 08:31:00.925 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-20 08:31:00.925 ***🔗
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-03-20 08:31:00.925 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01769b2575ccd038' from='localhost' version='1.0' xml:lang='en' to='bob@localhost'>

*** User 2024-03-20 08:31:00.925 ***🔗
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-03-20 08:31:00.926 ***🔗
bOb@localhost/res1 out
<iq type='set' id='647028c70c9798917baa6be0ab10bd4c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.926 ***🔗
bOb@localhost/res1 in
<iq id='647028c70c9798917baa6be0ab10bd4c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-20 08:31:00.926 ***🔗
bob@localhost/res1 out
<iq type='set' id='8cf270f67fed22c2286764e4b7c4654e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.927 ***🔗
bob@localhost/res1 in
<iq from='localhost' to='bob@localhost/res1' id='8cf270f67fed22c2286764e4b7c4654e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 08:31:00.927 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2024-03-20 08:31:00.929 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1'/>



*** User 2024-03-20 08:31:00.929 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2024-03-20 08:31:00.930 ***🔗
bob@localhost/res1 in
</stream:stream>
*** CT 2024-03-20 08:31:00.934 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5363.html



=== Ended at 2024-03-20 08:31:00
=== successfully completed test case
=== === Returned value: ok