=== 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,"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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.accounts_SUITE.logs/run.2024-04-12_13.25.36/accounts_suite.registration_conflict.388.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.accounts_SUITE.logs/run.2024-04-12_13.25.36/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8a480c91a890.2024-04-12_13.25.32"
=== Started at 2024-04-12 13:25:36
*** User 2024-04-12 13:25:36.478 ***🔗
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-12 13:25:36.478 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7751df4fa15d42b8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:25:36.478 ***🔗
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-12 13:25:36.478 ***🔗
alicE@domain.example.com out
<iq type='get' id='64cf1bb5481b68d1f65c56cbe48ac6be'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-12 13:25:36.479 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='64cf1bb5481b68d1f65c56cbe48ac6be' 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-12 13:25:36.479 ***🔗
alicE@domain.example.com out
<iq type='set' id='6a2b131957b0a9fb4cd8fda2b6af8ffd'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-12 13:25:36.482 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='6a2b131957b0a9fb4cd8fda2b6af8ffd' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-12 13:25:36.482 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-04-12 13:25:36.482 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-04-12 13:25:36.482 ***🔗
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-12 13:25:36.483 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8d80e8d2b3a9b9a5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:25:36.483 ***🔗
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-12 13:25:36.483 ***🔗
alicE@domain.example.com out
<iq type='get' id='6759ec0f83d80df7eb5236b5f253223f'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2024-04-12 13:25:36.483 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='6759ec0f83d80df7eb5236b5f253223f' 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-12 13:25:36.483 ***🔗
alicE@domain.example.com out
<iq type='set' id='0ea0c27f8f7651a8b792ee886f55eaac'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2024-04-12 13:25:36.484 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='0ea0c27f8f7651a8b792ee886f55eaac' 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-12 13:25:36.484 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2024-04-12 13:25:36.484 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2024-04-12 13:25:36.486 ***🔗
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-12 13:25:36.486 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfedc8a8818f39a4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:25:36.487 ***🔗
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-12 13:25:36.487 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2024-04-12 13:25:36.488 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:25:36.488 ***🔗
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-12 13:25:36.488 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d49b9e4803318684' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>
*** User 2024-04-12 13:25:36.488 ***🔗
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-12 13:25:36.488 ***🔗
alicE@domain.example.com out
<iq type='set' id='b4101021dbd513d15f388cfa74cbf277'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2024-04-12 13:25:36.488 ***🔗
alicE@domain.example.com in
<iq id='b4101021dbd513d15f388cfa74cbf277' 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-12 13:25:36.488 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='541c66e1c2a06b23e0453243e6b5e873'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:25:36.489 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='541c66e1c2a06b23e0453243e6b5e873' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:25:36.489 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='acd3521c14caf8266b0df29d997a0332'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2024-04-12 13:25:36.490 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='acd3521c14caf8266b0df29d997a0332' type='result'/>
*** User 2024-04-12 13:25:36.494 ***🔗
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-12 13:25:36.494 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2024-04-12 13:25:36
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"to">>,<<"domain.example.com">>},
{<<"id">>,<<"0ea0c27f8f7651a8b792ee886f55eaac">>},
{<<"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">>}],
[]}]}]}}