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

=== Config value:

    [{watchdog,<0.1752.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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.accounts_SUITE.logs/run.2024-04-16_10.12.23/accounts_suite.registration_conflict.771.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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.accounts_SUITE.logs/run.2024-04-16_10.12.23/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@db96c7cbc273.2024-04-16_10.12.19"

=== Started at 2024-04-16 10:12:23


*** CT 2024-04-16 10:12:23.506 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_37.html

*** User 2024-04-16 10:12:23.508 ***🔗
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 2024-04-16 10:12:23.508 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a0733ddca166a0b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:12:23.508 ***🔗
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 2024-04-16 10:12:23.508 ***🔗
alicE@domain.example.com out
<iq type='get' id='e3ecaa578f26be2344bb90ef22f3581d'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-16 10:12:23.509 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='e3ecaa578f26be2344bb90ef22f3581d' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2024-04-16 10:12:23.509 ***🔗
alicE@domain.example.com out
<iq type='set' id='f4e3cce0c9a409219c1682959b46777d'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-16 10:12:23.510 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='f4e3cce0c9a409219c1682959b46777d' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-16 10:12:23.510 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2024-04-16 10:12:23.510 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2024-04-16 10:12:23.511 ***🔗
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 2024-04-16 10:12:23.511 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9cdfe7d3223ea8ad' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:12:23.511 ***🔗
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 2024-04-16 10:12:23.511 ***🔗
alicE@domain.example.com out
<iq type='get' id='cfae7bfc903dc15cffbe98af2c802467'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-16 10:12:23.512 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='cfae7bfc903dc15cffbe98af2c802467' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2024-04-16 10:12:23.512 ***🔗
alicE@domain.example.com out
<iq type='set' id='227c24f23684cc29ba0506d0330ee25e'>
	<query xmlns='jabber:iq:register'>
		<username>alicE</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-16 10:12:23.512 ***🔗
alicE@domain.example.com in
<iq from='domain.example.com' to='domain.example.com' id='227c24f23684cc29ba0506d0330ee25e' 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 2024-04-16 10:12:23.512 ***🔗
alicE@domain.example.com out
</stream:stream>

*** User 2024-04-16 10:12:23.512 ***🔗
alicE@domain.example.com in
</stream:stream>

*** User 2024-04-16 10:12:23.514 ***🔗
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 2024-04-16 10:12:23.514 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c03d07fab099b0b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:12:23.515 ***🔗
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 2024-04-16 10:12:23.515 ***🔗
alicE@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:12:23.515 ***🔗
alicE@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:12:23.515 ***🔗
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 2024-04-16 10:12:23.516 ***🔗
alicE@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97b72d1ca78631d5' from='domain.example.com' version='1.0' xml:lang='en' to='alice@domain.example.com'>

*** User 2024-04-16 10:12:23.516 ***🔗
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 2024-04-16 10:12:23.516 ***🔗
alicE@domain.example.com out
<iq type='set' id='80ab1ceb4bda3a443c43d2e20db03a24'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-16 10:12:23.516 ***🔗
alicE@domain.example.com in
<iq id='80ab1ceb4bda3a443c43d2e20db03a24' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-16 10:12:23.516 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='49d99784f789c0e3654b63e1913d54d2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:12:23.516 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice@domain.example.com/escalus-default-resource' id='49d99784f789c0e3654b63e1913d54d2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:12:23.516 ***🔗
alice@domain.example.com/escalus-default-resource out
<iq type='set' id='da7b9c9e5809752fb7758332f442f484'>
	<query xmlns='jabber:iq:register'>
		<remove/>
	</query>
</iq>



*** User 2024-04-16 10:12:23.517 ***🔗
alice@domain.example.com/escalus-default-resource in
<iq from='' to='alice@domain.example.com/escalus-default-resource' id='da7b9c9e5809752fb7758332f442f484' type='result'/>



*** User 2024-04-16 10:12:23.520 ***🔗
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 2024-04-16 10:12:23.520 ***🔗
alice@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-16 10:12:23.520 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_37.html



=== Ended at 2024-04-16 10:12:23
=== successfully completed test case
=== === Returned value: {ok,conflict,
                        {xmlel,<<"iq">>,
                            [{<<"from">>,<<"domain.example.com">>},
                             {<<"to">>,<<"domain.example.com">>},
                             {<<"id">>,<<"227c24f23684cc29ba0506d0330ee25e">>},
                             {<<"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">>}],
                                      []}]}]}}