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

=== Config value:

    [{watchdog,<0.1454.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,"ldap_mnesia"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.accounts_SUITE.logs/run.2022-03-03_10.28.42/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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.accounts_SUITE.logs/run.2022-03-03_10.28.42/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:28:42


*** CT 2022-03-03 10:28:42.897 *** View log from node mongooseim@localhost when started mongooseim@localhost_35.html
*** CT 2022-03-03 10:28:42.897 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_29.html

*** User 2022-03-03 10:28:42.917 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:28:42.917 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='307a1d3e0e12357b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:28:42.917 ***
alicE@localhost 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>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-03 10:28:42.917 ***
alicE@localhost out
<iq type='get' id='534e567a53783e4fafe65dbbea35afe8'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-03 10:28:42.918 ***
alicE@localhost in
<iq from='localhost' id='534e567a53783e4fafe65dbbea35afe8' 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-03 10:28:42.918 ***
alicE@localhost out
<iq type='set' id='9f17e3158375a50c3be4a9c20893665f'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-03 10:28:42.919 ***
alicE@localhost in
<iq from='localhost' id='9f17e3158375a50c3be4a9c20893665f' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-03 10:28:42.919 ***
alicE@localhost out
</stream:stream>

*** User 2022-03-03 10:28:42.920 ***
alicE@localhost in
</stream:stream>

*** User 2022-03-03 10:28:42.920 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:28:42.921 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d10f4f9033b9be31' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:28:42.921 ***
alicE@localhost 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>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-03 10:28:42.921 ***
alicE@localhost out
<iq type='get' id='a72ea2d94429930b7172657fd2c99038'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-03 10:28:42.921 ***
alicE@localhost in
<iq from='localhost' id='a72ea2d94429930b7172657fd2c99038' 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-03 10:28:42.921 ***
alicE@localhost out
<iq type='set' id='2f22c0f7f66925e24d190fe82c17b9a8'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-03 10:28:42.922 ***
alicE@localhost in
<iq from='localhost' id='2f22c0f7f66925e24d190fe82c17b9a8' 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-03 10:28:42.923 ***
alicE@localhost out
</stream:stream>

*** User 2022-03-03 10:28:42.923 ***
alicE@localhost in
</stream:stream>

*** User 2022-03-03 10:28:42.925 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:28:42.926 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3e22389d95c664bb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:28:42.926 ***
alicE@localhost 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>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-03 10:28:42.926 ***
alicE@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-03-03 10:28:42.927 ***
alicE@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:28:42.927 ***
alicE@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:28:42.928 ***
alicE@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85f40b6ace041ea7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:28:42.928 ***
alicE@localhost 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-03 10:28:42.928 ***
alicE@localhost out
<iq type='set' id='c86757a768bf6b751e0a5fb21a97ae75'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2022-03-03 10:28:42.928 ***
alicE@localhost in
<iq id='c86757a768bf6b751e0a5fb21a97ae75' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2022-03-03 10:28:42.928 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='e71dd0e45c4e518d434beef74b5f85fb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:28:42.928 ***
alicE@localhost/escalus-default-resource in
<iq type='result' id='e71dd0e45c4e518d434beef74b5f85fb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:28:42.928 ***
alicE@localhost/escalus-default-resource out
<iq type='set' id='25894289dcf73e7a4d68036b3ce673b4'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2022-03-03 10:28:42.929 ***
alicE@localhost/escalus-default-resource in
<iq from='' to='alicE@localhost/escalus-default-resource' id='25894289dcf73e7a4d68036b3ce673b4' type='result'/>



*** User 2022-03-03 10:28:42.929 ***
alicE@localhost/escalus-default-resource out
</stream:stream>

*** User 2022-03-03 10:28:42.929 ***
alicE@localhost/escalus-default-resource in
</stream:stream>
*** CT 2022-03-03 10:28:42.930 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_29.html
*** CT 2022-03-03 10:28:42.931 *** View log from node mongooseim@localhost when finished mongooseim@localhost_35.html



=== Ended at 2022-03-03 10:28:42
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"localhost">>},
                             {<<"id">>,<<"2f22c0f7f66925e24d190fe82c17b9a8">>},
                             {<<"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">>}],
                                      []}]}]}}