=== 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,"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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.accounts_SUITE.logs/run.2023-11-14_11.38.16/accounts_suite.registration_conflict.1666.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.accounts_SUITE.logs/run.2023-11-14_11.38.16/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a2fc54846062.2023-11-14_11.38.11"

=== Started at 2023-11-14 11:38:16


*** CT 2023-11-14 11:38:16.931 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_39.html

*** User 2023-11-14 11:38:16.946 ***🔗
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-14 11:38:16.948 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f27d827fb3b78e15' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-14 11:38:16.948 ***🔗
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-14 11:38:16.948 ***🔗
alicE@domain.example.com out
<iq type='get' id='70767be8644b221a62b7567f442857ed'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-11-14 11:38:16.951 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='70767be8644b221a62b7567f442857ed' 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-14 11:38:16.951 ***🔗
alicE@domain.example.com out
<iq type='set' id='a122ac2503c892994b68f38f2c961b6f'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-14 11:38:16.954 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='a122ac2503c892994b68f38f2c961b6f' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-14 11:38:16.954 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2023-11-14 11:38:16.955 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2023-11-14 11:38:16.960 ***🔗
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-14 11:38:16.966 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7820750e6f9cb3b4' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-14 11:38:16.967 ***🔗
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-14 11:38:16.967 ***🔗
alicE@domain.example.com out
<iq type='get' id='add710e80bfc929d63e3faf2191c1d4a'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2023-11-14 11:38:16.968 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='add710e80bfc929d63e3faf2191c1d4a' 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-14 11:38:16.968 ***🔗
alicE@domain.example.com out
<iq type='set' id='345c038173422213cfb51e544624b3b7'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2023-11-14 11:38:16.970 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='345c038173422213cfb51e544624b3b7' 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-14 11:38:16.970 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2023-11-14 11:38:16.971 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2023-11-14 11:38:16.995 ***🔗
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-14 11:38:16.997 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37efe36a1b7c38e6' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2023-11-14 11:38:16.998 ***🔗
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-14 11:38:16.999 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efa997e7a07da6ec' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>

*** User 2023-11-14 11:38:16.999 ***🔗
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-14 11:38:16.999 ***🔗
alicE@domain.example.com out
<iq type='set' id='60d0ab11a9217fcd807c904ccf3c10e3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2023-11-14 11:38:17.002 ***🔗
alicE@domain.example.com in
<iq id='60d0ab11a9217fcd807c904ccf3c10e3' 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-14 11:38:17.003 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='e848f65f7bde8500962725e0b913e46c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:38:17.005 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='e848f65f7bde8500962725e0b913e46c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:38:17.005 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='f761277da8466dd49e279381643cec17'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2023-11-14 11:38:17.007 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='f761277da8466dd49e279381643cec17' type='result'/>



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



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