=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)
=== Config value:
[{watchdog,<0.1734.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.accounts_SUITE.logs/run.2023-11-13_19.21.13/accounts_suite.registration_conflict.131.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.accounts_SUITE.logs/run.2023-11-13_19.21.13/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:21:13
*** User 2023-11-13 19:21:13.240 ***🔗
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-13 19:21:13.240 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bff86ecac20221c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:21:13.240 ***🔗
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-13 19:21:13.240 ***🔗
alicE@domain.example.com out
<iq type='get' id='db7dff43ed163af59a69a796bfaf675d'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2023-11-13 19:21:13.241 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='db7dff43ed163af59a69a796bfaf675d' 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-13 19:21:13.241 ***🔗
alicE@domain.example.com out
<iq type='set' id='88959af6fbe7d30452cdbd3513738cd7'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-13 19:21:13.242 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='88959af6fbe7d30452cdbd3513738cd7' type='result'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-13 19:21:13.242 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2023-11-13 19:21:13.243 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2023-11-13 19:21:13.243 ***🔗
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-13 19:21:13.243 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5e38299463df42c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:21:13.243 ***🔗
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-13 19:21:13.244 ***🔗
alicE@domain.example.com out
<iq type='get' id='9498d8b52b55e380d90f60e1fb0d994c'>
<query xmlns='jabber:iq:register'/>
</iq>
*** User 2023-11-13 19:21:13.244 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='9498d8b52b55e380d90f60e1fb0d994c' 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-13 19:21:13.244 ***🔗
alicE@domain.example.com out
<iq type='set' id='215fddfffa755eafa9ec6735591b3fe7'>
<query xmlns='jabber:iq:register'>
<username>alicE</username>
<password>matygrysa</password>
</query>
</iq>
*** User 2023-11-13 19:21:13.245 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='215fddfffa755eafa9ec6735591b3fe7' 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-13 19:21:13.245 ***🔗
alicE@domain.example.com out
</stream:stream>
*** User 2023-11-13 19:21:13.245 ***🔗
alicE@domain.example.com in
</stream:stream>
*** User 2023-11-13 19:21:13.247 ***🔗
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-13 19:21:13.247 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5957df34dd4c3f5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:21:13.247 ***🔗
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-13 19:21:13.247 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2023-11-13 19:21:13.248 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:21:13.248 ***🔗
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-13 19:21:13.248 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18dbbd24021c6dc5' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>
*** User 2023-11-13 19:21:13.248 ***🔗
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-13 19:21:13.248 ***🔗
alicE@domain.example.com out
<iq type='set' id='bdfe4332c26158223b94c5f8dc7ef9a9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>escalus-default-resource</resource>
</bind>
</iq>
*** User 2023-11-13 19:21:13.248 ***🔗
alicE@domain.example.com in
<iq id='bdfe4332c26158223b94c5f8dc7ef9a9' 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-13 19:21:13.248 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='2c65cb196e9fcfb8812e0e194fe5846d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:21:13.249 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='2c65cb196e9fcfb8812e0e194fe5846d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:21:13.249 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='d354f800a55efbeac09c3a232e53ae05'>
<query xmlns='jabber:iq:register'>
<remove/>
</query>
</iq>
*** User 2023-11-13 19:21:13.249 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='d354f800a55efbeac09c3a232e53ae05' type='result'/>
*** User 2023-11-13 19:21:13.252 ***🔗
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-13 19:21:13.252 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
=== Ended at 2023-11-13 19:21:13
=== successfully completed test case
=== === Returned value: {ok,conflict,
{xmlel,<<"iq">>,
[{<<"from">>,<<"domain.example.com">>},
{<<"to">>,<<"domain.example.com">>},
{<<"id">>,<<"215fddfffa755eafa9ec6735591b3fe7">>},
{<<"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">>}],
[]}]}]}}