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

=== Config value:

    [{watchdog,<0.1225.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,"odbc_mssql_mnesia"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.accounts_SUITE.logs/run.2022-03-04_11.16.52/accounts_suite.registration_conflict.770.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.accounts_SUITE.logs/run.2022-03-04_11.16.52/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:16:53


*** CT 2022-03-04 11:16:53.212 *** View log from node mongooseim@localhost when started mongooseim@localhost_29.html
*** CT 2022-03-04 11:16:53.213 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_30.html

*** User 2022-03-04 11:16:53.223 ***
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-04 11:16:53.223 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76809db78d29a74a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:16:53.229 ***
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-04 11:16:53.230 ***
alicE@domain.example.com out
<iq type='get' id='d3f455ceb74accadeeb5dc212116c494'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-04 11:16:53.230 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='d3f455ceb74accadeeb5dc212116c494' 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-04 11:16:53.230 ***
alicE@domain.example.com out
<iq type='set' id='0fb747cdbfb42a0a6965549aa1bee52c'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-04 11:16:53.291 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='0fb747cdbfb42a0a6965549aa1bee52c' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-04 11:16:53.291 ***
alicE@domain.example.com out
</stream:stream>

*** User 2022-03-04 11:16:53.292 ***
alicE@domain.example.com in
</stream:stream>

*** User 2022-03-04 11:16:53.292 ***
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-04 11:16:53.293 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec810447129c22dd' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:16:53.293 ***
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-04 11:16:53.293 ***
alicE@domain.example.com out
<iq type='get' id='53a2b141d9b7c88cf23e6e0f8ec58751'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-03-04 11:16:53.294 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='53a2b141d9b7c88cf23e6e0f8ec58751' 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-04 11:16:53.294 ***
alicE@domain.example.com out
<iq type='set' id='f68e15acd2a4f78192311f59f8570a57'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-03-04 11:16:53.299 ***
alicE@domain.example.com in
<iq from='domain.example.com' id='f68e15acd2a4f78192311f59f8570a57' 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-04 11:16:53.299 ***
alicE@domain.example.com out
</stream:stream>

*** User 2022-03-04 11:16:53.300 ***
alicE@domain.example.com in
</stream:stream>

*** User 2022-03-04 11:16:53.303 ***
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-04 11:16:53.307 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fc8e1a3d7e97da0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:16:53.310 ***
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-04 11:16:53.322 ***
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:16:53.325 ***
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:16:53.328 ***
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-04 11:16:53.329 ***
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96b8935d2515282e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:16:53.329 ***
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-04 11:16:53.329 ***
alicE@domain.example.com out
<iq type='set' id='062360a69c3c8446ff4c6758a3570795'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2022-03-04 11:16:53.329 ***
alicE@domain.example.com in
<iq id='062360a69c3c8446ff4c6758a3570795' 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-04 11:16:53.339 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='97a2d15c82d2215bdab2b9aa4f972e4c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:16:53.340 ***
alicE@domain.example.com/escalus-default-resource in
<iq type='result' id='97a2d15c82d2215bdab2b9aa4f972e4c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:16:53.340 ***
alicE@domain.example.com/escalus-default-resource out
<iq type='set' id='5c7b95d167ea705bac8a5c4aaaedeaee'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2022-03-04 11:16:53.345 ***
alicE@domain.example.com/escalus-default-resource in
<iq from='' to='alicE@domain.example.com/escalus-default-resource' id='5c7b95d167ea705bac8a5c4aaaedeaee' type='result'/>



*** User 2022-03-04 11:16:53.345 ***
alicE@domain.example.com/escalus-default-resource out
</stream:stream>

*** User 2022-03-04 11:16:53.348 ***
alicE@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2022-03-04 11:16:53.349 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_30.html
*** CT 2022-03-04 11:16:53.350 *** View log from node mongooseim@localhost when finished mongooseim@localhost_29.html



=== Ended at 2022-03-04 11:16:53
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"domain.example.com">>},
                             {<<"id">>,<<"f68e15acd2a4f78192311f59f8570a57">>},
                             {<<"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">>}],
                                      []}]}]}}