=== 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,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@b1facb53901b.2024-04-30_06.47.40/big_tests.tests.accounts_SUITE.logs/run.2024-04-30_06.47.45/accounts_suite.registration_conflict.1666.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@b1facb53901b.2024-04-30_06.47.40/big_tests.tests.accounts_SUITE.logs/run.2024-04-30_06.47.45/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@b1facb53901b.2024-04-30_06.47.40"
=== Started at 2024-04-30 06:47:45
*** User 2024-04-30 06:47:45.922 ***🔗
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-30 06:47:45.923 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5bb44a52045fcbd1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-30 06:47:45.923 ***🔗
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-30 06:47:45.923 ***🔗
alicE@localhost out
<iq type='get' id='a1ed426009e53b146de851ac4a87c51c'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-30 06:47:45.923 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='a1ed426009e53b146de851ac4a87c51c' 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-30 06:47:45.923 ***🔗
alicE@localhost out
<iq type='set' id='c4af73c9b2ee1e8073576e08ad8ca90c'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-30 06:47:45.925 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='c4af73c9b2ee1e8073576e08ad8ca90c' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-30 06:47:45.925 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-30 06:47:45.926 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-30 06:47:45.926 ***🔗
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-30 06:47:45.926 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7617b87e945249a4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-30 06:47:45.926 ***🔗
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-30 06:47:45.926 ***🔗
alicE@localhost out
<iq type='get' id='76b4411dad9fd71fd2c6b4f19fbdd65c'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-30 06:47:45.927 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='76b4411dad9fd71fd2c6b4f19fbdd65c' 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-30 06:47:45.927 ***🔗
alicE@localhost out
<iq type='set' id='44587f2a8d9a04fc2dbc60ef90af245d'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-30 06:47:45.927 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='44587f2a8d9a04fc2dbc60ef90af245d' 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-30 06:47:45.927 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-30 06:47:45.928 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-30 06:47:45.929 ***🔗
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-30 06:47:45.930 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f10a3e4558c59d26' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-30 06:47:45.930 ***🔗
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-30 06:47:45.930 ***🔗
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-04-30 06:47:45.931 ***🔗
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-30 06:47:45.931 ***🔗
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-30 06:47:45.931 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='247bf857a4b2859c' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>
*** User 2024-04-30 06:47:45.931 ***🔗
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-30 06:47:45.931 ***🔗
alicE@localhost out
<iq type='set' id='5804c2d9eb773213d4cc8d004685d372'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-30 06:47:45.931 ***🔗
alicE@localhost in
<iq id='5804c2d9eb773213d4cc8d004685d372' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-30 06:47:45.932 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='e98db25b5c128b440125c561cc375e86'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-30 06:47:45.932 ***🔗
alice@localhost/escalus-default-resource in
<iq from='localhost' to='alice@localhost/escalus-default-resource' id='e98db25b5c128b440125c561cc375e86' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-30 06:47:45.932 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='024ee716bacd880feab2703afe8b865d'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-04-30 06:47:45.932 ***🔗
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='024ee716bacd880feab2703afe8b865d' type='result'/>
*** User 2024-04-30 06:47:45.935 ***🔗
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-30 06:47:45.935 ***🔗
alice@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-30 06:47:45
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"to">>,<<"localhost">>},
{<<"id">>,<<"44587f2a8d9a04fc2dbc60ef90af245d">>},
{<<"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">>}],
[]}]}]}}