=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1297.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 => []}},
{mim_data_dir,"/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.accounts_SUITE.logs/run.2022-05-25_09.03.38/accounts_suite.registration_conflict.258.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.accounts_SUITE.logs/run.2022-05-25_09.03.38/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38"
=== Started at 2022-05-25 09:03:39
*** User 2022-05-25 09:03:39.112 ***
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 2022-05-25 09:03:39.113 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f214545ea51c9c8b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:03:39.113 ***
alicE@domain.example.com in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 09:03:39.113 ***
alicE@domain.example.com out
<iq type='get' id='d94ceb9d8862460f553f26a7ef62b8ba'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-25 09:03:39.113 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='d94ceb9d8862460f553f26a7ef62b8ba' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2022-05-25 09:03:39.113 ***
alicE@domain.example.com out
<iq type='set' id='96bde29ca4289577cb13d98c4584e2da'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 09:03:39.128 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='96bde29ca4289577cb13d98c4584e2da' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 09:03:39.128 ***
alicE@domain.example.com out
</stream:stream>
*** User 2022-05-25 09:03:39.128 ***
alicE@domain.example.com in
</stream:stream>
*** User 2022-05-25 09:03:39.131 ***
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 2022-05-25 09:03:39.133 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='830cf1a1b43433c2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:03:39.135 ***
alicE@domain.example.com in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 09:03:39.137 ***
alicE@domain.example.com out
<iq type='get' id='40bc0c6991985b2ceab1f60d251fa0e2'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2022-05-25 09:03:39.139 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='40bc0c6991985b2ceab1f60d251fa0e2' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Choose a username and password to register with this server</instructions>
<username/>
<password/>
</query>
</iq>
*** User 2022-05-25 09:03:39.141 ***
alicE@domain.example.com out
<iq type='set' id='a4c322f8219a679ddc4e45d07de8fbe8'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2022-05-25 09:03:39.144 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='a4c322f8219a679ddc4e45d07de8fbe8' 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 2022-05-25 09:03:39.146 ***
alicE@domain.example.com out
</stream:stream>
*** User 2022-05-25 09:03:39.146 ***
alicE@domain.example.com in
</stream:stream>
*** User 2022-05-25 09:03:39.155 ***
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 2022-05-25 09:03:39.156 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='73c4f5b163472824' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:03:39.156 ***
alicE@domain.example.com in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 09:03:39.156 ***
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-05-25 09:03:39.157 ***
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:03:39.157 ***
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 2022-05-25 09:03:39.157 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26b2f244dc12b53a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:03:39.157 ***
alicE@domain.example.com in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 09:03:39.157 ***
alicE@domain.example.com out
<iq type='set' id='79595a86df96f0ac51cc032c837fd13f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2022-05-25 09:03:39.157 ***
alicE@domain.example.com in
<iq id='79595a86df96f0ac51cc032c837fd13f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice@domain.example.com/escalus-default-resource</jid>
</bind>
</iq>
*** User 2022-05-25 09:03:39.158 ***
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='3e7f4219924a93bef8ca54604446fb00'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:03:39.158 ***
alice@domain.example.com/escalus-default-resource in
<iq type='result' id='3e7f4219924a93bef8ca54604446fb00'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:03:39.158 ***
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='c2a3fdca5cf7e75964e1f16b2929e221'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2022-05-25 09:03:39.159 ***
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='c2a3fdca5cf7e75964e1f16b2929e221' type='result'/>
*** User 2022-05-25 09:03:39.159 ***
alice@domain.example.com/escalus-default-resource out
</stream:stream>
*** User 2022-05-25 09:03:39.161 ***
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2022-05-25 09:03:39
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"id">>,<<"a4c322f8219a679ddc4e45d07de8fbe8">>},
{<<"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">>}],
[]}]}]}}