=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1519.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,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.accounts_SUITE.logs/run.2022-05-25_10.38.13/accounts_suite.registration_conflict.642.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.accounts_SUITE.logs/run.2022-05-25_10.38.13/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:38:13
*** User 2022-05-25 10:38:13.882 ***
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-05-25 10:38:13.883 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f922d498c803b8fb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:38:13.883 ***
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-05-25 10:38:13.883 ***
alicE@localhost out
<iq type='get' id='a08e52daaa347ed60c1c17889b341efd'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-25 10:38:13.883 ***
alicE@localhost in
<iq from='localhost' id='a08e52daaa347ed60c1c17889b341efd' 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-25 10:38:13.883 ***
alicE@localhost out
<iq type='set' id='87d8c15d8e62829ab826a93cde6cce61'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 10:38:13.888 ***
alicE@localhost in
<iq from='localhost' id='87d8c15d8e62829ab826a93cde6cce61' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 10:38:13.889 ***
alicE@localhost out
</stream:stream>
*** User 2022-05-25 10:38:13.889 ***
alicE@localhost in
</stream:stream>
*** User 2022-05-25 10:38:13.889 ***
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-05-25 10:38:13.890 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='363e112b116a6bdb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:38:13.890 ***
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-05-25 10:38:13.890 ***
alicE@localhost out
<iq type='get' id='47ed7cb2eb9f852fd4ecf4b82c52335d'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-25 10:38:13.890 ***
alicE@localhost in
<iq from='localhost' id='47ed7cb2eb9f852fd4ecf4b82c52335d' 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-25 10:38:13.891 ***
alicE@localhost out
<iq type='set' id='3ad5ad25d77d4b39dc8a49200c56782c'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 10:38:13.893 ***
alicE@localhost in
<iq from='localhost' id='3ad5ad25d77d4b39dc8a49200c56782c' 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-25 10:38:13.893 ***
alicE@localhost out
</stream:stream>
*** User 2022-05-25 10:38:13.894 ***
alicE@localhost in
</stream:stream>
*** User 2022-05-25 10:38:13.896 ***
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-05-25 10:38:13.897 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='02c9a5f573f5e7f7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:38:13.897 ***
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-05-25 10:38:13.897 ***
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-05-25 10:38:13.899 ***
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:38:13.899 ***
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-05-25 10:38:13.899 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23adef882049be6e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:38:13.900 ***
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-05-25 10:38:13.900 ***
alicE@localhost out
<iq type='set' id='37f37e187ab8288fc0663d0ff288d239'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2022-05-25 10:38:13.900 ***
alicE@localhost in
<iq id='37f37e187ab8288fc0663d0ff288d239' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2022-05-25 10:38:13.900 ***
alice@localhost/escalus-default-resource out
<iq type='set' id='ced29387f136b71618474204c81f2189'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:38:13.900 ***
alice@localhost/escalus-default-resource in
<iq type='result' id='ced29387f136b71618474204c81f2189'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:38:13.900 ***
alice@localhost/escalus-default-resource out
<iq type='set' id='b635b2e78f3519e9744eeb19a07b6c62'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2022-05-25 10:38:13.902 ***
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='b635b2e78f3519e9744eeb19a07b6c62' type='result'/>
*** User 2022-05-25 10:38:13.902 ***
alice@localhost/escalus-default-resource out
</stream:stream>
*** User 2022-05-25 10:38:13.902 ***
alice@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2022-05-25 10:38:13
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"id">>,<<"3ad5ad25d77d4b39dc8a49200c56782c">>},
{<<"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">>}],
[]}]}]}}