=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1812.0>},
{escalus_user_db,xmpp},
{mod_register_options,#{access => register,iqdisc => one_queue,
registration_watchers => [],
password_strength => 0,
ip_access =>
[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]}},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@461f60707eef.2024-04-22_14.32.12/big_tests.tests.accounts_SUITE.logs/run.2024-04-22_14.32.18/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@461f60707eef.2024-04-22_14.32.12/big_tests.tests.accounts_SUITE.logs/run.2024-04-22_14.32.18/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@461f60707eef.2024-04-22_14.32.12"
=== Started at 2024-04-22 14:32:18
*** User 2024-04-22 14:32:18.512 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:32:18.513 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3fe73e538cff7cef' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:32:18.513 ***🔗
alicE@localhost in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:32:18.513 ***🔗
alicE@localhost out
<iq type='get' id='f026fa6c9db4dd61cdd2159380e221bc'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-22 14:32:18.513 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='f026fa6c9db4dd61cdd2159380e221bc' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2024-04-22 14:32:18.513 ***🔗
alicE@localhost out
<iq type='set' id='34550df9f8595676de9011042a9b517d'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-22 14:32:18.515 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='34550df9f8595676de9011042a9b517d' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-22 14:32:18.515 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-22 14:32:18.516 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-22 14:32:18.516 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:32:18.516 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8526fb30ddf0ccde' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:32:18.517 ***🔗
alicE@localhost in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:32:18.517 ***🔗
alicE@localhost out
<iq type='get' id='51bc25dca3745efe2a051fe8360c689c'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-22 14:32:18.517 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='51bc25dca3745efe2a051fe8360c689c' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2024-04-22 14:32:18.517 ***🔗
alicE@localhost out
<iq type='set' id='14cb5e78845179e7db93a75e8e6c9188'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-22 14:32:18.518 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='14cb5e78845179e7db93a75e8e6c9188' 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 2024-04-22 14:32:18.518 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-22 14:32:18.518 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-22 14:32:18.520 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:32:18.520 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6a8692c9fa2ff9b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:32:18.520 ***🔗
alicE@localhost in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:32:18.520 ***🔗
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:32:18.521 ***🔗
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:32:18.521 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:32:18.521 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c5a8743cd2728b4' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>
*** User 2024-04-22 14:32:18.521 ***🔗
alicE@localhost in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:32:18.521 ***🔗
alicE@localhost out
<iq type='set' id='d097f08e8eef3f8ce887162716ff40d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-22 14:32:18.522 ***🔗
alicE@localhost in
<iq id='d097f08e8eef3f8ce887162716ff40d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-22 14:32:18.522 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='0e3a9135084489d4c66a0324a812433a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:32:18.522 ***🔗
alice@localhost/escalus-default-resource in
<iq from='localhost' to='alice@localhost/escalus-default-resource' id='0e3a9135084489d4c66a0324a812433a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:32:18.522 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='a6019f98e0305d00700e4ae4ea53b7dc'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-04-22 14:32:18.523 ***🔗
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='a6019f98e0305d00700e4ae4ea53b7dc' type='result'/>
*** User 2024-04-22 14:32:18.526 ***🔗
alice@localhost/escalus-default-resource in
<stream:error>
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
<text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>User removed</text>
</stream:error>
*** User 2024-04-22 14:32:18.526 ***🔗
alice@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-22 14:32:18
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"to">>,<<"localhost">>},
{<<"id">>,<<"14cb5e78845179e7db93a75e8e6c9188">>},
{<<"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">>}],
[]}]}]}}