=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1754.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,"odbc_mssql_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@9653e50c5872.2024-04-25_14.32.38/big_tests.tests.accounts_SUITE.logs/run.2024-04-25_14.32.42/accounts_suite.registration_conflict.899.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@9653e50c5872.2024-04-25_14.32.38/big_tests.tests.accounts_SUITE.logs/run.2024-04-25_14.32.42/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@9653e50c5872.2024-04-25_14.32.38"
=== Started at 2024-04-25 14:32:42
*** User 2024-04-25 14:32:42.543 ***🔗
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 14:32:42.543 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='55b88cf91efab825' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:32:42.543 ***🔗
alicE@domain.example.com 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-25 14:32:42.544 ***🔗
alicE@domain.example.com out
<iq type='get' id='80f552b5187feadb6607769ae747b3d7'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-25 14:32:42.544 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='80f552b5187feadb6607769ae747b3d7' 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-25 14:32:42.544 ***🔗
alicE@domain.example.com out
<iq type='set' id='02b2bd6f351ee8aaaa63d61757f1453c'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-25 14:32:42.547 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='02b2bd6f351ee8aaaa63d61757f1453c' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-25 14:32:42.547 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-04-25 14:32:42.547 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-04-25 14:32:42.547 ***🔗
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 14:32:42.547 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d8b41d07c447563b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:32:42.548 ***🔗
alicE@domain.example.com 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-25 14:32:42.548 ***🔗
alicE@domain.example.com out
<iq type='get' id='b1d31009ad529ac48db42540c36ec99b'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-25 14:32:42.548 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='b1d31009ad529ac48db42540c36ec99b' 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-25 14:32:42.548 ***🔗
alicE@domain.example.com out
<iq type='set' id='24eb7953def6bee07c0c0e4274f0eb9c'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-25 14:32:42.549 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='24eb7953def6bee07c0c0e4274f0eb9c' 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-25 14:32:42.549 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-04-25 14:32:42.549 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-04-25 14:32:42.551 ***🔗
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 14:32:42.551 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3d194fcdd20144b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:32:42.551 ***🔗
alicE@domain.example.com 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-25 14:32:42.551 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 14:32:42.552 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:32:42.552 ***🔗
alicE@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 14:32:42.552 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92d73567351489e6' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>
*** User 2024-04-25 14:32:42.552 ***🔗
alicE@domain.example.com 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-25 14:32:42.552 ***🔗
alicE@domain.example.com out
<iq type='set' id='cccadfc51d3ad2c196fa17ce4440b43b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-25 14:32:42.552 ***🔗
alicE@domain.example.com in
<iq id='cccadfc51d3ad2c196fa17ce4440b43b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-04-25 14:32:42.552 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='42c8c404562906729d1fd1971d536f18'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:32:42.553 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='42c8c404562906729d1fd1971d536f18' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:32:42.553 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='57efb49449ccc732e956c23592c68dd6'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-04-25 14:32:42.553 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='57efb49449ccc732e956c23592c68dd6' type='result'/>
*** User 2024-04-25 14:32:42.558 ***🔗
alice@domain.example.com/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-25 14:32:42.558 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-25 14:32:42
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"to">>,<<"domain.example.com">>},
{<<"id">>,<<"24eb7953def6bee07c0c0e4274f0eb9c">>},
{<<"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">>}],
[]}]}]}}