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

=== Config value:

    [{watchdog,<0.1795.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,"ldap_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@04136cebbe9f.2024-02-26_14.30.11/big_tests.tests.accounts_SUITE.logs/run.2024-02-26_14.30.16/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@04136cebbe9f.2024-02-26_14.30.11/big_tests.tests.accounts_SUITE.logs/run.2024-02-26_14.30.16/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@04136cebbe9f.2024-02-26_14.30.11"

=== Started at 2024-02-26 14:30:17


*** CT 2024-02-26 14:30:17.031 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_39.html

*** User 2024-02-26 14:30:17.034 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:30:17.034 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='216b64dc4d6eaa76' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-26 14:30:17.034 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-26 14:30:17.034 ***🔗
alicE@localhost out
<iq type='get' id='4d4747589da28b8f061ad082795b0f1d'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-02-26 14:30:17.035 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='4d4747589da28b8f061ad082795b0f1d' 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-26 14:30:17.035 ***🔗
alicE@localhost out
<iq type='set' id='6225f76c8f11fc8e56dfbb2cb7955e41'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-26 14:30:17.037 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='6225f76c8f11fc8e56dfbb2cb7955e41' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-26 14:30:17.037 ***🔗
alicE@localhost out
</stream:stream>

*** User 2024-02-26 14:30:17.037 ***🔗
alicE@localhost in
</stream:stream>

*** User 2024-02-26 14:30:17.038 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:30:17.038 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8e1582421923dc45' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-26 14:30:17.038 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-26 14:30:17.038 ***🔗
alicE@localhost out
<iq type='get' id='0e6bf7f18b84d6f524151f9a98a53214'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-02-26 14:30:17.039 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='0e6bf7f18b84d6f524151f9a98a53214' 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-26 14:30:17.039 ***🔗
alicE@localhost out
<iq type='set' id='6e6033a3dce0a061ae012c42fc48cb06'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-02-26 14:30:17.040 ***🔗
alicE@localhost in
<iq from='localhost' to='localhost' id='6e6033a3dce0a061ae012c42fc48cb06' 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-26 14:30:17.040 ***🔗
alicE@localhost out
</stream:stream>

*** User 2024-02-26 14:30:17.040 ***🔗
alicE@localhost in
</stream:stream>

*** User 2024-02-26 14:30:17.042 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:30:17.042 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb91f08796e6514d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-26 14:30:17.043 ***🔗
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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-26 14:30:17.043 ***🔗
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-02-26 14:30:17.044 ***🔗
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 14:30:17.044 ***🔗
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 14:30:17.044 ***🔗
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c9a4b487a4961f27' from='localhost' version='1.0' xml:lang='en' to='alice@localhost'>

*** User 2024-02-26 14:30:17.044 ***🔗
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 2024-02-26 14:30:17.044 ***🔗
alicE@localhost out
<iq type='set' id='16c1466ee0fe0fdd78e83f21639ce44f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-02-26 14:30:17.044 ***🔗
alicE@localhost in
<iq id='16c1466ee0fe0fdd78e83f21639ce44f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-02-26 14:30:17.045 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='ca4120204a60ec4c7705341b8a0671ae'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 14:30:17.045 ***🔗
alice@localhost/escalus-default-resource in
<iq from='localhost' to='alice@localhost/escalus-default-resource' id='ca4120204a60ec4c7705341b8a0671ae' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 14:30:17.045 ***🔗
alice@localhost/escalus-default-resource out
<iq type='set' id='7d7c551a1807825ff3a51c4bcef49744'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2024-02-26 14:30:17.045 ***🔗
alice@localhost/escalus-default-resource in
<iq from='' to='alice@localhost/escalus-default-resource' id='7d7c551a1807825ff3a51c4bcef49744' type='result'/>



*** User 2024-02-26 14:30:17.047 ***🔗
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 2024-02-26 14:30:17.047 ***🔗
alice@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-02-26 14:30:17.048 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_39.html



=== Ended at 2024-02-26 14:30:17
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"localhost">>},
                             {<<"to">>,<<"localhost">>},
                             {<<"id">>,<<"6e6033a3dce0a061ae012c42fc48cb06">>},
                             {<<"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">>}],
                                      []}]}]}}