=== Test case: mongooseimctl_SUITE:num_resources_num/1 (click for source code)

=== Config value:

    [{watchdog,<0.3907.1>},
     {ctl_auth_mods,[ejabberd_auth_riak,ejabberd_auth_anonymous,
                     ejabberd_auth_riak]},
     {roster_template,"/home/circleci/project/big_tests/tests/mongooseimctl_SUITE_data/roster.template"},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mongooseimctl_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.mongooseimctl_SUITE.logs/run.2022-05-18_10.08.57/mongooseimctl_suite.num_resources_num.html"},
     {tc_group_properties,[{name,sessions},sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mongooseimctl_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.mongooseimctl_SUITE.logs/run.2022-05-18_10.08.57/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {mike,[{username,<<"mike">>},
                            {server,<<"localhost">>},
                            {password,<<"nicniema">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8dd706b7fd53.2022-05-18_09.59.49"

=== Started at 2022-05-18 10:09:01


*** CT 2022-05-18 10:09:01.501 *** View log from node mongooseim@localhost when started mongooseim@localhost_4488.html
*** CT 2022-05-18 10:09:01.501 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1960.html

*** User 2022-05-18 10:09:01.502 ***
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.503 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7c314ba8269076d' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-05-18 10:09:01.505 ***
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:09:01.505 ***
alicE@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.505 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74a654349fa26083' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:09:01.505 ***
alicE@localhost/res1 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-05-18 10:09:01.505 ***
alicE@localhost/res1 out
<iq type='set' id='a83a6d078ae666b81edbe6cf486af945'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.505 ***
alicE@localhost/res1 in
<iq id='a83a6d078ae666b81edbe6cf486af945' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.505 ***
alice@localhost/res1 out
<iq type='set' id='d133456be48759b22d3f6d3bfb76fccc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.506 ***
alice@localhost/res1 in
<iq type='result' id='d133456be48759b22d3f6d3bfb76fccc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.506 ***
alice@localhost/res1 out
<presence/>



*** User 2022-05-18 10:09:01.507 ***
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:09:01.508 ***
alicE@localhost/res2 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.508 ***
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b082627289b7c5e8' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-05-18 10:09:01.509 ***
alicE@localhost/res2 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:09:01.510 ***
alicE@localhost/res2 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.510 ***
alicE@localhost/res2 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='55c2718c5933ab7a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:09:01.510 ***
alicE@localhost/res2 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-05-18 10:09:01.510 ***
alicE@localhost/res2 out
<iq type='set' id='a45086ce72cb274c630a7a6192e60e4e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res2</resource>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.510 ***
alicE@localhost/res2 in
<iq id='a45086ce72cb274c630a7a6192e60e4e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res2</jid>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.510 ***
alice@localhost/res2 out
<iq type='set' id='81e746f775de84d77705b2d05af68549'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.510 ***
alice@localhost/res2 in
<iq type='result' id='81e746f775de84d77705b2d05af68549'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.510 ***
alice@localhost/res2 out
<presence/>



*** User 2022-05-18 10:09:01.512 ***
alice@localhost/res2 in
<presence from='alice@localhost/res2' to='alice@localhost/res2' xml:lang='en'/>



*** User 2022-05-18 10:09:01.512 ***
alice@localhost/res2 in
<presence from='alice@localhost/res1' to='alice@localhost/res2' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:09:01Z' from='alice@localhost/res1'/>
</presence>



*** User 2022-05-18 10:09:01.512 ***
alicE@localhost/res3 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.513 ***
alicE@localhost/res3 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e79d8822e07e0a50' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-05-18 10:09:01.514 ***
alicE@localhost/res3 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:09:01.514 ***
alicE@localhost/res3 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.514 ***
alicE@localhost/res3 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8abd90aba18c790a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:09:01.514 ***
alicE@localhost/res3 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-05-18 10:09:01.514 ***
alicE@localhost/res3 out
<iq type='set' id='ceecb9e074570fe80cfe8c5ff3572cd1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res3</resource>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.514 ***
alicE@localhost/res3 in
<iq id='ceecb9e074570fe80cfe8c5ff3572cd1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res3</jid>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.515 ***
alice@localhost/res3 out
<iq type='set' id='2bfbe2552a12902d02b6cb6515e46da6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.515 ***
alice@localhost/res3 in
<iq type='result' id='2bfbe2552a12902d02b6cb6515e46da6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.515 ***
alice@localhost/res3 out
<presence/>



*** User 2022-05-18 10:09:01.516 ***
alice@localhost/res3 in
<presence from='alice@localhost/res3' to='alice@localhost/res3' xml:lang='en'/>



*** User 2022-05-18 10:09:01.516 ***
alice@localhost/res3 in
<presence from='alice@localhost/res2' to='alice@localhost/res3' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:09:01Z' from='alice@localhost/res2'/>
</presence>



*** User 2022-05-18 10:09:01.516 ***
alice@localhost/res3 in
<presence from='alice@localhost/res1' to='alice@localhost/res3' xml:lang='en'>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:09:01Z' from='alice@localhost/res1'/>
</presence>



*** User 2022-05-18 10:09:01.517 ***
alice@localhost/res1 in
<presence from='alice@localhost/res2' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:09:01.517 ***
alice@localhost/res1 in
<presence from='alice@localhost/res3' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:09:01.517 ***
alice@localhost/res2 in
<presence from='alice@localhost/res3' to='alice@localhost/res2' xml:lang='en'/>



*** User 2022-05-18 10:09:01.517 ***
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.517 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='31d4961ccaee0348' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:09:01.517 ***
bOb@localhost/res1 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-05-18 10:09:01.517 ***
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2022-05-18 10:09:01.519 ***
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:09:01.519 ***
bOb@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:09:01.519 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='61a7ba09cc5ae96c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:09:01.519 ***
bOb@localhost/res1 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-05-18 10:09:01.519 ***
bOb@localhost/res1 out
<iq type='set' id='e86b7ff615346c3a657f44279304f08c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.519 ***
bOb@localhost/res1 in
<iq id='e86b7ff615346c3a657f44279304f08c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:09:01.519 ***
bob@localhost/res1 out
<iq type='set' id='587f3d3c8e4e100f96205382854e36a3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.519 ***
bob@localhost/res1 in
<iq type='result' id='587f3d3c8e4e100f96205382854e36a3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:09:01.519 ***
bob@localhost/res1 out
<presence/>



*** User 2022-05-18 10:09:01.521 ***
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:09:01.721 ***
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  num_resources alicE localhost
Result "3\n"
ExitStatus 0

*** User 2022-05-18 10:09:01.893 ***
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  resource_num alicE localhost 2
Result "res2\n"
ExitStatus 0

*** User 2022-05-18 10:09:01.893 ***
bob@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:09:01.893 ***
bob@localhost/res1 in
</stream:stream>

*** User 2022-05-18 10:09:01.893 ***
alice@localhost/res3 out
</stream:stream>

*** User 2022-05-18 10:09:01.893 ***
alice@localhost/res3 in
</stream:stream>

*** User 2022-05-18 10:09:01.893 ***
alice@localhost/res2 out
</stream:stream>

*** User 2022-05-18 10:09:01.894 ***
alice@localhost/res2 in
</stream:stream>

*** User 2022-05-18 10:09:01.894 ***
alice@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:09:01.894 ***
alice@localhost/res1 in
</stream:stream>
*** CT 2022-05-18 10:09:01.896 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1960.html
*** CT 2022-05-18 10:09:01.896 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4488.html



=== Ended at 2022-05-18 10:09:01
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result