=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1468.0>},
{escalus_user_db,xmpp},
{mod_register_options,
[{welcome_message,{[],[]}},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{access,register},
{registration_watchers,[]}]},
{mim_data_dir,
"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,
"/home/circleci/project/big_tests/ct_report/ct_run.test@37839f4a29ed.2022-03-18_09.02.26/big_tests.tests.accounts_SUITE.logs/run.2022-03-18_09.02.29/accounts_suite.registration_conflict.1027.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@37839f4a29ed.2022-03-18_09.02.26/big_tests.tests.accounts_SUITE.logs/run.2022-03-18_09.02.29/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@37839f4a29ed.2022-03-18_09.02.26"
=== Started at 2022-03-18 09:02:29
*** User 2022-03-18 09:02:29.829 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 09:02:29.829 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d1d7c21f62770a9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:02:29.829 ***
alicE@localhost 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-03-18 09:02:29.830 ***
alicE@localhost out
<iq type='get' id='26b26df77c791c1781037f3210e3fe1b'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-03-18 09:02:29.830 ***
alicE@localhost in
<iq from='localhost' id='26b26df77c791c1781037f3210e3fe1b' 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-03-18 09:02:29.830 ***
alicE@localhost out
<iq type='set' id='43e851b55014e7b9e2999a52939d7e05'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-03-18 09:02:29.833 ***
alicE@localhost in
<iq from='localhost' id='43e851b55014e7b9e2999a52939d7e05' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-03-18 09:02:29.833 ***
alicE@localhost out
</stream:stream>
*** User 2022-03-18 09:02:29.833 ***
alicE@localhost in
</stream:stream>
*** User 2022-03-18 09:02:29.834 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 09:02:29.834 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d265e5db5b87e3b3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:02:29.834 ***
alicE@localhost 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-03-18 09:02:29.835 ***
alicE@localhost out
<iq type='get' id='75430c305b0ac4ccc7fe16e690bf9507'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-03-18 09:02:29.835 ***
alicE@localhost in
<iq from='localhost' id='75430c305b0ac4ccc7fe16e690bf9507' 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-03-18 09:02:29.835 ***
alicE@localhost out
<iq type='set' id='182d5436580f580f7ea591b22fa45998'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-03-18 09:02:29.837 ***
alicE@localhost in
<iq from='localhost' id='182d5436580f580f7ea591b22fa45998' 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-03-18 09:02:29.837 ***
alicE@localhost out
</stream:stream>
*** User 2022-03-18 09:02:29.837 ***
alicE@localhost in
</stream:stream>
*** User 2022-03-18 09:02:29.839 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 09:02:29.840 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5ad284a5b2491537' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:02:29.840 ***
alicE@localhost 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-03-18 09:02:29.840 ***
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-03-18 09:02:29.842 ***
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 09:02:29.842 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 09:02:29.842 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84841b4503584d00' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:02:29.842 ***
alicE@localhost 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-03-18 09:02:29.843 ***
alicE@localhost out
<iq type='set' id='9a1ce14d3e5c60882df3c1a9d2f0ea14'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2022-03-18 09:02:29.843 ***
alicE@localhost in
<iq id='9a1ce14d3e5c60882df3c1a9d2f0ea14' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2022-03-18 09:02:29.843 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='ca613c777f0d256e4abe1e3788bd6852'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:02:29.843 ***
alicE@localhost/escalus-default-resource in
<iq type='result' id='ca613c777f0d256e4abe1e3788bd6852'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:02:29.843 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='b283a92633ed75f7cca4408e33d10544'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2022-03-18 09:02:29.845 ***
alicE@localhost/escalus-default-resource in
<iq from='' to='alicE@localhost/escalus-default-resource' id='b283a92633ed75f7cca4408e33d10544' type='result'/>
*** User 2022-03-18 09:02:29.845 ***
alicE@localhost/escalus-default-resource out
</stream:stream>
*** User 2022-03-18 09:02:29.845 ***
alicE@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2022-03-18 09:02:29
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"id">>,<<"182d5436580f580f7ea591b22fa45998">>},
{<<"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">>}],
[]}]}]}}