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

=== Config value:

    [{watchdog,<0.1737.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,"odbc_mssql_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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.accounts_SUITE.logs/run.2023-11-17_15.10.22/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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.accounts_SUITE.logs/run.2023-11-17_15.10.22/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@9f12fc69b406.2023-11-17_15.10.18"

=== Started at 2023-11-17 15:10:22


*** CT 2023-11-17 15:10:22.872 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_39.html

*** User 2023-11-17 15:10:22.874 ***🔗
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-17 15:10:22.874 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a45fa2f072ca7fc2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:10:22.875 ***🔗
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-17 15:10:22.875 ***🔗
alicE@domain.example.com out
<iq type='get' id='7fea5aa900620a0d1047a277ffce18b9'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-11-17 15:10:22.875 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='7fea5aa900620a0d1047a277ffce18b9' 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-17 15:10:22.875 ***🔗
alicE@domain.example.com out
<iq type='set' id='4b9eaa26513be7d9ef9235cc2297297a'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-17 15:10:22.908 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='4b9eaa26513be7d9ef9235cc2297297a' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-17 15:10:22.908 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2023-11-17 15:10:22.909 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2023-11-17 15:10:22.909 ***🔗
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-17 15:10:22.909 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2af5a4302c620428' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:10:22.909 ***🔗
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-17 15:10:22.910 ***🔗
alicE@domain.example.com out
<iq type='get' id='5f9253fbcf3d1cbe7a6f1e30a9173f85'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-11-17 15:10:22.910 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='5f9253fbcf3d1cbe7a6f1e30a9173f85' 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-17 15:10:22.910 ***🔗
alicE@domain.example.com out
<iq type='set' id='22b99188243206dc7c9f63252849ee1f'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-17 15:10:22.911 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='22b99188243206dc7c9f63252849ee1f' 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-17 15:10:22.911 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2023-11-17 15:10:22.911 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2023-11-17 15:10:22.913 ***🔗
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-17 15:10:22.913 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3389ff5274f2ba45' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:10:22.913 ***🔗
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-17 15:10:22.913 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2023-11-17 15:10:22.925 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:10:22.925 ***🔗
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-17 15:10:22.926 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74fbb7310a88f0a9' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>

*** User 2023-11-17 15:10:22.926 ***🔗
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-17 15:10:22.926 ***🔗
alicE@domain.example.com out
<iq type='set' id='6f0e09f6a6dda22ef3653db8a77804f1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-11-17 15:10:22.926 ***🔗
alicE@domain.example.com in
<iq id='6f0e09f6a6dda22ef3653db8a77804f1' 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-17 15:10:22.926 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='031673602e0839385cc860163c266d0e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:10:22.926 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='031673602e0839385cc860163c266d0e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:10:22.927 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='0c92d4ccf234bbe61a64d818bb1cb0f4'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2023-11-17 15:10:22.927 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='0c92d4ccf234bbe61a64d818bb1cb0f4' type='result'/>



*** User 2023-11-17 15:10:22.933 ***🔗
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-17 15:10:22.933 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2023-11-17 15:10:22.933 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_40.html



=== Ended at 2023-11-17 15:10:22
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"domain.example.com">>},
                             {<<"to">>,<<"domain.example.com">>},
                             {<<"id">>,<<"22b99188243206dc7c9f63252849ee1f">>},
                             {<<"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">>}],
                                      []}]}]}}