=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1748.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.accounts_SUITE.logs/run.2024-03-07_11.00.06/accounts_suite.registration_conflict.1410.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.accounts_SUITE.logs/run.2024-03-07_11.00.06/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a458c4eb991a.2024-03-07_11.00.02"
=== Started at 2024-03-07 11:00:06
*** User 2024-03-07 11:00:06.384 ***🔗
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-03-07 11:00:06.385 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e67968fce6b63cf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-07 11:00:06.385 ***🔗
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-03-07 11:00:06.385 ***🔗
alicE@domain.example.com out
<iq type='get' id='023c7c02d41aba4d204fb6460bd25b60'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-03-07 11:00:06.385 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='023c7c02d41aba4d204fb6460bd25b60' 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-03-07 11:00:06.385 ***🔗
alicE@domain.example.com out
<iq type='set' id='2c387b8c9a368aacded5e89ff31db459'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-03-07 11:00:06.387 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='2c387b8c9a368aacded5e89ff31db459' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-03-07 11:00:06.388 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-03-07 11:00:06.388 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-03-07 11:00:06.388 ***🔗
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-03-07 11:00:06.389 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05acfe439c37ba7c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-07 11:00:06.389 ***🔗
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-03-07 11:00:06.389 ***🔗
alicE@domain.example.com out
<iq type='get' id='446a9864a48ce1a762cbf2ab7576f33d'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-03-07 11:00:06.389 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='446a9864a48ce1a762cbf2ab7576f33d' 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-03-07 11:00:06.389 ***🔗
alicE@domain.example.com out
<iq type='set' id='56f988beec30260b613a65c4a73123ba'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-03-07 11:00:06.390 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='56f988beec30260b613a65c4a73123ba' 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-03-07 11:00:06.390 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-03-07 11:00:06.390 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-03-07 11:00:06.393 ***🔗
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-03-07 11:00:06.393 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c7ebda4658c5712' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-07 11:00:06.393 ***🔗
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-03-07 11:00:06.393 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-03-07 11:00:06.394 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-07 11:00:06.394 ***🔗
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-03-07 11:00:06.394 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3fb2417b8d21bc06' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>
*** User 2024-03-07 11:00:06.394 ***🔗
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-03-07 11:00:06.394 ***🔗
alicE@domain.example.com out
<iq type='set' id='739963f6026045d54309e849ce5ff61e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-03-07 11:00:06.394 ***🔗
alicE@domain.example.com in
<iq id='739963f6026045d54309e849ce5ff61e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2024-03-07 11:00:06.395 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='ba5e6c05f79acd96588a990bca7e3658'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:00:06.395 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='ba5e6c05f79acd96588a990bca7e3658' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:00:06.395 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='cd52d7004713a79fa05e924bd2041ce1'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-03-07 11:00:06.396 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='cd52d7004713a79fa05e924bd2041ce1' type='result'/>
*** User 2024-03-07 11:00:06.398 ***🔗
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-03-07 11:00:06.398 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-03-07 11:00:06
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"to">>,<<"domain.example.com">>},
{<<"id">>,<<"56f988beec30260b613a65c4a73123ba">>},
{<<"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">>}],
[]}]}]}}