=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1271.0>},
{escalus_user_db,xmpp},
{mod_register_options,#{access => register,
ip_access =>
[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []}},
{mim_data_dir,"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.accounts_SUITE.logs/run.2022-05-11_08.56.40/accounts_suite.registration_conflict.515.html"},
{tc_group_properties,[{name,register},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/accounts_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.accounts_SUITE.logs/run.2022-05-11_08.56.40/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 08:56:41
*** User 2022-05-11 08:56:41.089 ***
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 08:56:41.089 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c964cad60a775be4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 08:56:41.089 ***
alicE@domain.example.com 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-05-11 08:56:41.089 ***
alicE@domain.example.com out
<iq type='get' id='3e71989c0a533c38fc01ec403de9a506'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-11 08:56:41.090 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='3e71989c0a533c38fc01ec403de9a506' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2022-05-11 08:56:41.090 ***
alicE@domain.example.com out
<iq type='set' id='7c8c7edcb9078c446cd28c3262fa27d1'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-11 08:56:41.109 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='7c8c7edcb9078c446cd28c3262fa27d1' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-11 08:56:41.109 ***
alicE@domain.example.com out
</stream:stream>
*** User 2022-05-11 08:56:41.109 ***
alicE@domain.example.com in
</stream:stream>
*** User 2022-05-11 08:56:41.112 ***
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 08:56:41.114 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='662ae0bb7250d7c3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 08:56:41.116 ***
alicE@domain.example.com 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-05-11 08:56:41.117 ***
alicE@domain.example.com out
<iq type='get' id='992a1091fd73368351e0bd163cbda9c6'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-11 08:56:41.119 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='992a1091fd73368351e0bd163cbda9c6' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2022-05-11 08:56:41.121 ***
alicE@domain.example.com out
<iq type='set' id='7da429c90b667599d2c82488818fcd1e'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-11 08:56:41.122 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='7da429c90b667599d2c82488818fcd1e' type='error'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
<error code='409' type='cancel'>
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
*** User 2022-05-11 08:56:41.124 ***
alicE@domain.example.com out
</stream:stream>
*** User 2022-05-11 08:56:41.127 ***
alicE@domain.example.com in
</stream:stream>
*** User 2022-05-11 08:56:41.131 ***
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 08:56:41.133 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd9c403fc21d2ec1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 08:56:41.135 ***
alicE@domain.example.com 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-05-11 08:56:41.135 ***
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cc7fe98fcd92d81f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com 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-05-11 08:56:41.136 ***
alicE@domain.example.com out
<iq type='set' id='57fc9dd5279e774a78a867a628687fcc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com in
<iq id='57fc9dd5279e774a78a867a628687fcc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2022-05-11 08:56:41.136 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='7656377eb1c95e579bfd4e2dcb347727'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 08:56:41.137 ***
alicE@domain.example.com/escalus-default-resource in
<iq type='result' id='7656377eb1c95e579bfd4e2dcb347727'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 08:56:41.137 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='01e54d63692878d7e88355a9b8efcb53'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2022-05-11 08:56:41.138 ***
alicE@domain.example.com/escalus-default-resource in
<iq from='' to='alicE@domain.example.com/escalus-default-resource' id='01e54d63692878d7e88355a9b8efcb53' type='result'/>
*** User 2022-05-11 08:56:41.138 ***
alicE@domain.example.com/escalus-default-resource out
</stream:stream>
*** User 2022-05-11 08:56:41.140 ***
alicE@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2022-05-11 08:56:41
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"id">>,<<"7da429c90b667599d2c82488818fcd1e">>},
{<<"type">>,<<"error">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:register">>}],
[{xmlel,<<"username">>,[],
[{xmlcdata,<<"alicE">>}]},
{xmlel,<<"password">>,[],
[{xmlcdata,<<"matygrysa">>}]}]},
{xmlel,<<"error">>,
[{<<"code">>,<<"409">>},
{<<"type">>,<<"cancel">>}],
[{xmlel,<<"conflict">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-stanzas">>}],
[]}]}]}}