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

=== Config value:

    [{watchdog,<0.1778.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.accounts_SUITE.logs/run.2023-12-04_15.40.29/accounts_suite.registration_conflict.1154.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.accounts_SUITE.logs/run.2023-12-04_15.40.29/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cdcecdf9c9e0.2023-12-04_15.40.23"

=== Started at 2023-12-04 15:40:29


*** CT 2023-12-04 15:40:29.308 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_41.html

*** User 2023-12-04 15:40:29.309 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:40:29.309 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b81afb89a892dd15' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-04 15:40:29.310 ***🔗
alicE@localhost 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-12-04 15:40:29.310 ***🔗
alicE@localhost out
<iq type='get' id='94b72107df830a744a2ad985d12e962c'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-12-04 15:40:29.310 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='94b72107df830a744a2ad985d12e962c' 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-12-04 15:40:29.310 ***🔗
alicE@localhost out
<iq type='set' id='d905a6ef0cb665e47233713300c2dab0'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-12-04 15:40:29.312 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='d905a6ef0cb665e47233713300c2dab0' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-12-04 15:40:29.312 ***🔗
alicE@localhost out
</stream:stream>

*** User 2023-12-04 15:40:29.312 ***🔗
alicE@localhost in
</stream:stream>

*** User 2023-12-04 15:40:29.313 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:40:29.313 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6f0f10ff3b91ba3' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-04 15:40:29.313 ***🔗
alicE@localhost 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-12-04 15:40:29.313 ***🔗
alicE@localhost out
<iq type='get' id='b7facd4d961d5b4fdaf7bbe8207ae506'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-12-04 15:40:29.313 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='b7facd4d961d5b4fdaf7bbe8207ae506' 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-12-04 15:40:29.314 ***🔗
alicE@localhost out
<iq type='set' id='a22175baa5b87e3d706d3b8648a2abf5'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-12-04 15:40:29.314 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='a22175baa5b87e3d706d3b8648a2abf5' 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-12-04 15:40:29.314 ***🔗
alicE@localhost out
</stream:stream>

*** User 2023-12-04 15:40:29.314 ***🔗
alicE@localhost in
</stream:stream>

*** User 2023-12-04 15:40:29.316 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:40:29.317 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b3013c43b018c19a' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-04 15:40:29.317 ***🔗
alicE@localhost 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-12-04 15:40:29.317 ***🔗
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2023-12-04 15:40:29.317 ***🔗
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-04 15:40:29.317 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:40:29.318 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1ba457af367b5ba' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2023-12-04 15:40:29.318 ***🔗
alicE@localhost 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-12-04 15:40:29.318 ***🔗
alicE@localhost out
<iq type='set' id='d4adea86b757428b42cf4593aeb0b1fa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-12-04 15:40:29.318 ***🔗
alicE@localhost in
<iq id='d4adea86b757428b42cf4593aeb0b1fa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2023-12-04 15:40:29.318 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='223d816074969ea9825f4dc745096bcd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:40:29.319 ***🔗
alice@localhost/escalus-default-resource in
<iq from='localhost' to='alice@localhost/escalus-default-resource' id='223d816074969ea9825f4dc745096bcd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:40:29.319 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='e95bd1539ff8eaa20e4b1962c23ebfee'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2023-12-04 15:40:29.319 ***🔗
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='e95bd1539ff8eaa20e4b1962c23ebfee' type='result'/>



*** User 2023-12-04 15:40:29.322 ***🔗
alice@localhost/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-12-04 15:40:29.322 ***🔗
alice@localhost/escalus-default-resource in
</stream:stream>
*** CT 2023-12-04 15:40:29.323 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_41.html



=== Ended at 2023-12-04 15:40:29
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"localhost">>},
                             {<<"to">>,<<"localhost">>},
                             {<<"id">>,<<"a22175baa5b87e3d706d3b8648a2abf5">>},
                             {<<"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">>}],
                                      []}]}]}}