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

=== Config value:

    [{watchdog,<0.1254.0>},
     {escalus_user_db,xmpp},
     {mod_register_options,
         [{welcome_message,{[],[]}},
          {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
          {access,register},
          {registration_watchers,[]}]},
     {mim_data_dir,
         "/home/circleci/project/big_tests/tests/accounts_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.accounts_SUITE.logs/run.2022-03-18_10.50.05/accounts_suite.registration_conflict.899.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.accounts_SUITE.logs/run.2022-03-18_10.50.05/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"

=== Started at 2022-03-18 10:50:05


*** CT 2022-03-18 10:50:05.636 *** View log from node mongooseim@localhost when started mongooseim@localhost_24.html
*** CT 2022-03-18 10:50:05.637 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_25.html

*** User 2022-03-18 10:50:05.646 ***
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 2022-03-18 10:50:05.653 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='65203de6774a8116' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:50:05.653 ***
alicE@domain.example.com in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-18 10:50:05.653 ***
alicE@domain.example.com out
<iq type='get' id='a574e56658b4c7eabb980576c759c1da'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-18 10:50:05.653 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='a574e56658b4c7eabb980576c759c1da' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2022-03-18 10:50:05.653 ***
alicE@domain.example.com out
<iq type='set' id='2c9ebe3d79280eaa9eaef3c674be497e'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-18 10:50:05.670 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='2c9ebe3d79280eaa9eaef3c674be497e' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-18 10:50:05.670 ***
alicE@domain.example.com out
</stream:stream>

*** User 2022-03-18 10:50:05.673 ***
alicE@domain.example.com in
</stream:stream>

*** User 2022-03-18 10:50:05.680 ***
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 2022-03-18 10:50:05.683 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='289a40f8a091bf9e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:50:05.685 ***
alicE@domain.example.com in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-18 10:50:05.685 ***
alicE@domain.example.com out
<iq type='get' id='c3b3b0f844ef8070c5621161148598a0'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-18 10:50:05.686 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='c3b3b0f844ef8070c5621161148598a0' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2022-03-18 10:50:05.686 ***
alicE@domain.example.com out
<iq type='set' id='1dc840b1f1df3b5aab8701f7c2afeaac'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-18 10:50:05.690 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='1dc840b1f1df3b5aab8701f7c2afeaac' 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 2022-03-18 10:50:05.693 ***
alicE@domain.example.com out
</stream:stream>

*** User 2022-03-18 10:50:05.693 ***
alicE@domain.example.com in
</stream:stream>

*** User 2022-03-18 10:50:05.705 ***
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 2022-03-18 10:50:05.705 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4df32bbc21d71329' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:50:05.705 ***
alicE@domain.example.com in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-18 10:50:05.705 ***
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-03-18 10:50:05.706 ***
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:50:05.706 ***
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 2022-03-18 10:50:05.707 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2576272ac3138cfc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:50:05.707 ***
alicE@domain.example.com in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-18 10:50:05.707 ***
alicE@domain.example.com out
<iq type='set' id='0ebc8d67e15097867d46839914d06aa5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2022-03-18 10:50:05.707 ***
alicE@domain.example.com in
<iq id='0ebc8d67e15097867d46839914d06aa5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2022-03-18 10:50:05.707 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='edb8d4ab6c2c6ef212f11c009a131479'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:50:05.707 ***
alicE@domain.example.com/escalus-default-resource in
<iq type='result' id='edb8d4ab6c2c6ef212f11c009a131479'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:50:05.710 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='45a22b4773c71cc3d54651306c6a5a66'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2022-03-18 10:50:05.711 ***
alicE@domain.example.com/escalus-default-resource in
<iq from='' to='alicE@domain.example.com/escalus-default-resource' id='45a22b4773c71cc3d54651306c6a5a66' type='result'/>



*** User 2022-03-18 10:50:05.711 ***
alicE@domain.example.com/escalus-default-resource out
</stream:stream>

*** User 2022-03-18 10:50:05.711 ***
alicE@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2022-03-18 10:50:05.712 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_25.html
*** CT 2022-03-18 10:50:05.713 *** View log from node mongooseim@localhost when finished mongooseim@localhost_24.html



=== Ended at 2022-03-18 10:50:05
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"domain.example.com">>},
                             {<<"id">>,<<"1dc840b1f1df3b5aab8701f7c2afeaac">>},
                             {<<"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">>}],
                                      []}]}]}}