=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1738.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_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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.accounts_SUITE.logs/run.2023-11-23_14.14.02/accounts_suite.registration_conflict.259.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.accounts_SUITE.logs/run.2023-11-23_14.14.02/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58"
=== Started at 2023-11-23 14:14:02
*** User 2023-11-23 14:14:02.568 ***🔗
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 2023-11-23 14:14:02.569 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e0c328c4cd5cf18' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-23 14:14:02.569 ***🔗
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 2023-11-23 14:14:02.569 ***🔗
alicE@domain.example.com out
<iq type='get' id='86aac0421f4d7b78d46c75e261476519'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2023-11-23 14:14:02.569 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='86aac0421f4d7b78d46c75e261476519' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2023-11-23 14:14:02.569 ***🔗
alicE@domain.example.com out
<iq type='set' id='49f69252a7c38f281a36732c85d0d664'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-23 14:14:02.575 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='49f69252a7c38f281a36732c85d0d664' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-23 14:14:02.575 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2023-11-23 14:14:02.576 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2023-11-23 14:14:02.576 ***🔗
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 2023-11-23 14:14:02.576 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6015150065d0843e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-23 14:14:02.577 ***🔗
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 2023-11-23 14:14:02.577 ***🔗
alicE@domain.example.com out
<iq type='get' id='a04bb67405eb4b20dade34e771bba407'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2023-11-23 14:14:02.577 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='a04bb67405eb4b20dade34e771bba407' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2023-11-23 14:14:02.577 ***🔗
alicE@domain.example.com out
<iq type='set' id='b8c3e15792c65ebf5cc40e30e96f7ece'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-23 14:14:02.578 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='b8c3e15792c65ebf5cc40e30e96f7ece' 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 2023-11-23 14:14:02.578 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2023-11-23 14:14:02.578 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2023-11-23 14:14:02.580 ***🔗
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 2023-11-23 14:14:02.580 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='165686c0462aa5a5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-23 14:14:02.580 ***🔗
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 2023-11-23 14:14:02.580 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2023-11-23 14:14:02.583 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-23 14:14:02.584 ***🔗
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 2023-11-23 14:14:02.584 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53e835b94927d19c' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>
*** User 2023-11-23 14:14:02.584 ***🔗
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 2023-11-23 14:14:02.584 ***🔗
alicE@domain.example.com out
<iq type='set' id='181f1bf2ba3c12b2bb6d2dadb82ecb0d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2023-11-23 14:14:02.584 ***🔗
alicE@domain.example.com in
<iq id='181f1bf2ba3c12b2bb6d2dadb82ecb0d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2023-11-23 14:14:02.584 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='04fbf3de9ca304b13c8ea7f45e31608a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-23 14:14:02.585 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='04fbf3de9ca304b13c8ea7f45e31608a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-23 14:14:02.585 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='83cfcb8a7c32acfb05ea395ad846100d'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2023-11-23 14:14:02.585 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='83cfcb8a7c32acfb05ea395ad846100d' type='result'/>
*** User 2023-11-23 14:14:02.595 ***🔗
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 2023-11-23 14:14:02.595 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2023-11-23 14:14:02
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"to">>,<<"domain.example.com">>},
{<<"id">>,<<"b8c3e15792c65ebf5cc40e30e96f7ece">>},
{<<"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">>}],
[]}]}]}}