=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1793.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 => []}},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@9d11dc49e72b.2024-04-23_11.31.35/big_tests.tests.accounts_SUITE.logs/run.2024-04-23_11.31.40/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@9d11dc49e72b.2024-04-23_11.31.35/big_tests.tests.accounts_SUITE.logs/run.2024-04-23_11.31.40/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@9d11dc49e72b.2024-04-23_11.31.35"
=== Started at 2024-04-23 11:31:40
*** User 2024-04-23 11:31:40.837 ***🔗
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-23 11:31:40.837 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8608ce8307bb2a17' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:31:40.837 ***🔗
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-23 11:31:40.837 ***🔗
alicE@localhost out
<iq type='get' id='187de8d6688359f6b78b716e13b25b3a'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-23 11:31:40.838 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='187de8d6688359f6b78b716e13b25b3a' 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-23 11:31:40.838 ***🔗
alicE@localhost out
<iq type='set' id='85d4aad92660f10047524cdd191ca845'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-23 11:31:40.840 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='85d4aad92660f10047524cdd191ca845' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-23 11:31:40.840 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-23 11:31:40.840 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-23 11:31:40.841 ***🔗
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-23 11:31:40.841 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='415ccacc9d15f0f0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:31:40.841 ***🔗
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-23 11:31:40.841 ***🔗
alicE@localhost out
<iq type='get' id='aff0103e394ba9e974b1316b661a4690'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-23 11:31:40.841 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='aff0103e394ba9e974b1316b661a4690' 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-23 11:31:40.841 ***🔗
alicE@localhost out
<iq type='set' id='be0c09c23b48822f6c2a9cebb9459c54'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-23 11:31:40.842 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='be0c09c23b48822f6c2a9cebb9459c54' 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-23 11:31:40.842 ***🔗
alicE@localhost out
</stream:stream>
*** User 2024-04-23 11:31:40.842 ***🔗
alicE@localhost in
</stream:stream>
*** User 2024-04-23 11:31:40.844 ***🔗
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-23 11:31:40.844 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7303a85649bfd807' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:31:40.844 ***🔗
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-23 11:31:40.844 ***🔗
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 11:31:40.845 ***🔗
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:31:40.845 ***🔗
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-23 11:31:40.845 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e28dcee36a39921e' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>
*** User 2024-04-23 11:31:40.845 ***🔗
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-23 11:31:40.845 ***🔗
alicE@localhost out
<iq type='set' id='ba0f5b8c4be6b4ae5e5d0cbeb648e72e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-23 11:31:40.846 ***🔗
alicE@localhost in
<iq id='ba0f5b8c4be6b4ae5e5d0cbeb648e72e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@localhost/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-23 11:31:40.846 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='61ad40f9a683e2896a7f82d0174cdf0a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:31:40.846 ***🔗
alice@localhost/escalus-default-resource in
<iq from='localhost' to='alice@localhost/escalus-default-resource' id='61ad40f9a683e2896a7f82d0174cdf0a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:31:40.846 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='a2d9b8926a51ee91055a504b305d42b0'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-04-23 11:31:40.847 ***🔗
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='a2d9b8926a51ee91055a504b305d42b0' type='result'/>
*** User 2024-04-23 11:31:40.849 ***🔗
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-23 11:31:40.849 ***🔗
alice@localhost/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-23 11:31:40
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"localhost">>},
{<<"to">>,<<"localhost">>},
{<<"id">>,<<"be0c09c23b48822f6c2a9cebb9459c54">>},
{<<"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">>}],
[]}]}]}}