=== Test case: graphql_account_SUITE:user_change_password/1 (click for source code)
=== Config value:
[{schema_endpoint,user},
{watchdog,<0.15043.0>},
{ctl_auth_mods,[ejabberd_auth_internal,ejabberd_auth_anonymous,
ejabberd_auth_internal]},
{mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_account_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.graphql_account_SUITE.logs/run.2022-01-27_15.27.40/graphql_account_suite.user_change_password.26498.html"},
{tc_group_properties,[{name,user_account_handler},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_account_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.graphql_account_SUITE.logs/run.2022-01-27_15.27.40/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [],mod_sic => [],mod_stream_management => [],
mod_vcard => [{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:27:41
*** User 2022-01-27 15:27:41.104 ***
alicE_user_change_password_663@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:27:41.104 ***
alicE_user_change_password_663@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8468133dacde319' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:27:41.104 ***
alicE_user_change_password_663@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfY2hhbmdlX3Bhc3N3b3JkXzY2MwBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6788b4d3c2f2790' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 out
<iq type='set' id='333635a800dfb009f465f3d20776416b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 in
<iq id='333635a800dfb009f465f3d20776416b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_user_change_password_663@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:27:41.105 ***
alicE_user_change_password_663@localhost/res1 out
<iq type='set' id='1e51c5fa2cd078cd0b43116d1315b62f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:27:41.106 ***
alicE_user_change_password_663@localhost/res1 in
<iq type='result' id='1e51c5fa2cd078cd0b43116d1315b62f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:27:41.106 ***
alicE_user_change_password_663@localhost/res1 out
<presence/>
*** User 2022-01-27 15:27:41.106 ***
alicE_user_change_password_663@localhost/res1 in
<presence from='alicE_user_change_password_663@localhost/res1' to='alice_user_change_password_663@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:27:41.111 ***
REST request:
Code: 200
Req: {<0.15071.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba7f96ba144da525">>},
{<<"authorization">>,
<<"Basic YWxpY0VfdXNlcl9jaGFuZ2VfcGFzc3dvcmRfNjYzQGxvY2FsaG9zdC9yZXMxOm1hdHlncnlzYQ==">>}],
<<"{\"variables\":{\"newPassword\":\"\"},\"query\":\"mutation M1($newPassword: String!)\\n { account { changePassword(newPassword: $newPassword) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:27:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"159">>}],
<<"{\"errors\":[{\"path\":[\"account\",\"changePassword\"],\"message\":\"Empty password\",\"extensions\":{\"code\":\"empty_password\"}}],\"data\":{\"account\":{\"changePassword\":null}}}">>,
298,2779}
Params: #{body =>
<<"{\"variables\":{\"newPassword\":\"\"},\"query\":\"mutation M1($newPassword: String!)\\n { account { changePassword(newPassword: $newPassword) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"alicE_user_change_password_663@localhost/res1">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:27:41.114 ***
REST request:
Code: 200
Req: {<0.15074.0>,<<"/api/graphql">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e64217ed1072fb9f">>},
{<<"authorization">>,
<<"Basic YWxpY0VfdXNlcl9jaGFuZ2VfcGFzc3dvcmRfNjYzQGxvY2FsaG9zdC9yZXMxOm1hdHlncnlzYQ==">>}],
<<"{\"variables\":{\"newPassword\":\"kaczka\"},\"query\":\"mutation M1($newPassword: String!)\\n { account { changePassword(newPassword: $newPassword) } }\",\"operationName\":\"M1\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"vary">>,<<"accept">>},
{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:27:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"58">>}],
<<"{\"data\":{\"account\":{\"changePassword\":\"Password changed\"}}}">>,
196,1318}
Params: #{body =>
<<"{\"variables\":{\"newPassword\":\"kaczka\"},\"query\":\"mutation M1($newPassword: String!)\\n { account { changePassword(newPassword: $newPassword) } }\",\"operationName\":\"M1\"}">>,
creds =>
{<<"alicE_user_change_password_663@localhost/res1">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/graphql">>,port => 5561,
return_headers => true,return_maps => true,
role => {graphql,<<"user">>},
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:27:41.114 ***
alicE_user_change_password_663@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:27:41.115 ***
alicE_user_change_password_663@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:27:41
=== successfully completed test case
=== === Returned value: ok