=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1430.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,"odbc_mssql_mnesia"},
{tc_logfile,
"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.accounts_SUITE.logs/run.2022-01-27_15.25.14/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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.accounts_SUITE.logs/run.2022-01-27_15.25.14/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:25:14
*** User 2022-01-27 15:25:14.804 ***
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-01-27 15:25:14.806 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92ef18e6e234d954' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:25:14.806 ***
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-01-27 15:25:14.806 ***
alicE@localhost out
<iq type='get' id='0dfb9c745233dd74a874cb8d5320bee1'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-01-27 15:25:14.806 ***
alicE@localhost in
<iq from='localhost' id='0dfb9c745233dd74a874cb8d5320bee1' 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-01-27 15:25:14.806 ***
alicE@localhost out
<iq type='set' id='a0ec304f7cfcee021c91cfba4ac725dd'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-01-27 15:25:14.864 ***
alicE@localhost in
<iq from='localhost' id='a0ec304f7cfcee021c91cfba4ac725dd' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-01-27 15:25:14.864 ***
alicE@localhost out
</stream:stream>
*** User 2022-01-27 15:25:14.864 ***
alicE@localhost in
</stream:stream>
*** User 2022-01-27 15:25:14.865 ***
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-01-27 15:25:14.865 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6649f78a7a9b6bf6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:25:14.865 ***
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-01-27 15:25:14.865 ***
alicE@localhost out
<iq type='get' id='bf938c8765df9301becfaf94646fedf7'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-01-27 15:25:14.866 ***
alicE@localhost in
<iq from='localhost' id='bf938c8765df9301becfaf94646fedf7' 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-01-27 15:25:14.866 ***
alicE@localhost out
<iq type='set' id='2d7fd9ac4d02ef3831fa1159e68bb276'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-01-27 15:25:14.867 ***
alicE@localhost in
<iq from='localhost' id='2d7fd9ac4d02ef3831fa1159e68bb276' 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-01-27 15:25:14.867 ***
alicE@localhost out
</stream:stream>
*** User 2022-01-27 15:25:14.867 ***
alicE@localhost in
</stream:stream>
*** User 2022-01-27 15:25:14.869 ***
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-01-27 15:25:14.870 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5bc7417e62964973' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:25:14.870 ***
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-01-27 15:25:14.870 ***
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:25:14.871 ***
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:25:14.871 ***
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-01-27 15:25:14.872 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='16caa195ad862da8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:25:14.872 ***
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-01-27 15:25:14.872 ***
alicE@localhost out
<iq type='set' id='d4506ba2af714c0e24d6c68727a0090c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2022-01-27 15:25:14.872 ***
alicE@localhost in
<iq id='d4506ba2af714c0e24d6c68727a0090c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2022-01-27 15:25:14.872 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='d0cd95c89685c52efe053f06fd1550b6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:25:14.872 ***
alicE@localhost/escalus-default-resource in
<iq type='result' id='d0cd95c89685c52efe053f06fd1550b6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:25:14.873 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='f12207ae84e9ae67bede046e2a6e4a80'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2022-01-27 15:25:14.874 ***
alicE@localhost/escalus-default-resource in
<iq from='' to='alicE@localhost/escalus-default-resource' id='f12207ae84e9ae67bede046e2a6e4a80' type='result'/>
*** User 2022-01-27 15:25:14.874 ***
alicE@localhost/escalus-default-resource out
</stream:stream>
*** User 2022-01-27 15:25:14.874 ***
alicE@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2022-01-27 15:25:14
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"id">>,<<"2d7fd9ac4d02ef3831fa1159e68bb276">>},
{<<"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">>}],
[]}]}]}}