=== Test case: accounts_SUITE:registration_conflict/1 (click for source code)

=== Config value:

    [{watchdog,<0.1753.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@d144898ca8cb.2024-02-29_09.17.24/big_tests.tests.accounts_SUITE.logs/run.2024-02-29_09.17.28/accounts_suite.registration_conflict.1922.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@d144898ca8cb.2024-02-29_09.17.24/big_tests.tests.accounts_SUITE.logs/run.2024-02-29_09.17.28/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d144898ca8cb.2024-02-29_09.17.24"

=== Started at 2024-02-29 09:17:28


*** CT 2024-02-29 09:17:28.927 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_38.html

*** User 2024-02-29 09:17:28.929 ***🔗
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-02-29 09:17:28.929 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='32eff3d606ad8af5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-29 09:17:28.929 ***🔗
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-02-29 09:17:28.929 ***🔗
alicE@domain.example.com out
<iq type='get' id='5f68599bd2235961aafab18a812b1351'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-02-29 09:17:28.930 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='5f68599bd2235961aafab18a812b1351' 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-02-29 09:17:28.930 ***🔗
alicE@domain.example.com out
<iq type='set' id='3de86d2f1aa9172d2d918824bff3e81e'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-29 09:17:28.933 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='3de86d2f1aa9172d2d918824bff3e81e' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-29 09:17:28.933 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2024-02-29 09:17:28.933 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2024-02-29 09:17:28.934 ***🔗
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-02-29 09:17:28.934 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c55bd3eebb7df0af' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-29 09:17:28.935 ***🔗
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-02-29 09:17:28.935 ***🔗
alicE@domain.example.com out
<iq type='get' id='916835fb2a857b562baca2ae43c19087'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-02-29 09:17:28.935 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='916835fb2a857b562baca2ae43c19087' 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-02-29 09:17:28.935 ***🔗
alicE@domain.example.com out
<iq type='set' id='a2a160efa10f934981498ab0de525775'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-29 09:17:28.936 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='a2a160efa10f934981498ab0de525775' 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-02-29 09:17:28.936 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2024-02-29 09:17:28.937 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2024-02-29 09:17:28.939 ***🔗
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-02-29 09:17:28.939 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='45d22a4ea4a5664b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-29 09:17:28.940 ***🔗
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-02-29 09:17:28.940 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-02-29 09:17:28.941 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-29 09:17:28.941 ***🔗
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-02-29 09:17:28.941 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aaa50aecd0a112f0' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>

*** User 2024-02-29 09:17:28.941 ***🔗
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-02-29 09:17:28.941 ***🔗
alicE@domain.example.com out
<iq type='set' id='20b836a41f8f9f3aec1f33bb46f78f2f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-02-29 09:17:28.942 ***🔗
alicE@domain.example.com in
<iq id='20b836a41f8f9f3aec1f33bb46f78f2f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-02-29 09:17:28.942 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='57580a99256f39637fb22c28bf809315'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-29 09:17:28.942 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='57580a99256f39637fb22c28bf809315' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-29 09:17:28.943 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='c8d54e2443614bd94c9d18b931d9ec2d'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2024-02-29 09:17:28.943 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='c8d54e2443614bd94c9d18b931d9ec2d' type='result'/>



*** User 2024-02-29 09:17:28.948 ***🔗
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-02-29 09:17:28.948 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-02-29 09:17:28.949 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_38.html



=== Ended at 2024-02-29 09:17:28
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"domain.example.com">>},
                             {<<"to">>,<<"domain.example.com">>},
                             {<<"id">>,<<"a2a160efa10f934981498ab0de525775">>},
                             {<<"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">>}],
                                      []}]}]}}