=== Test case: pubsub_s2s_SUITE:publish_test/1 (click for source code)

=== Config value:

    [{watchdog,<0.3160.2>},
     {s2s_opts,{s2s_opts,"priv/ssl/fake_server.pem",optional,
                         #{ip_address => "0",
                           ip_tuple => {0,0,0,0},
                           ip_version => 4,max_stanza_size => 131072,
                           module => ejabberd_s2s_in,port => 5269,
                           proto => tcp,shaper => s2s_shaper,
                           tls => [{dhfile,"priv/ssl/fake_dh_server.pem"}]},
                         "priv/ssl/fake_server.pem",optional,
                         #{ip_address => "0",
                           ip_tuple => {0,0,0,0},
                           ip_version => 4,max_stanza_size => 131072,
                           module => ejabberd_s2s_in,port => 5299,
                           proto => tcp,shaper => s2s_shaper,
                           tls => [{dhfile,"priv/ssl/fake_dh_server.pem"}]}}},
     {escalus_user_db,xmpp},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/pubsub_s2s_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.pubsub_s2s_SUITE.logs/run.2022-01-27_15.35.52/pubsub_s2s_suite.publish_test.137346.html"},
     {tc_group_properties,[{name,'dag+basic'},
                           {repeat_until_all_ok,3},
                           parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/pubsub_s2s_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.pubsub_s2s_SUITE.logs/run.2022-01-27_15.35.52/log_private/"},
     {escalus_users,[{alice2,[{username,<<"alice">>},
                              {server,<<"fed1">>},
                              {host,<<"localhost">>},
                              {port,5242},
                              {password,<<"makota2">>}]},
                     {alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]}]},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:35:52


*** CT 2022-01-27 15:35:52.218 *** View log from node mongooseim@localhost when started mongooseim@localhost_5463.html
*** CT 2022-01-27 15:35:52.219 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:35:52.224 ***
alice_publish_test_1985@fed1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:35:52.225 ***
alice_publish_test_1985@fed1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4dbf752cd984f1b0' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.225 ***
alice_publish_test_1985@fed1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-512</mechanism>
		<mechanism>SCRAM-SHA-384</mechanism>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>SCRAM-SHA-224</mechanism>
		<mechanism>SCRAM-SHA-1</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:35:52.225 ***
alice_publish_test_1985@fed1 out
<iq type='get' id='845f0d9c4bb372436f135ac4da44ee17'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-01-27 15:35:52.225 ***
alice_publish_test_1985@fed1 in
<iq from='fed1' id='845f0d9c4bb372436f135ac4da44ee17' 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-01-27 15:35:52.225 ***
alice_publish_test_1985@fed1 out
<iq type='set' id='c593baa186414e88e85c9d23826c7e2a'>
	<query xmlns='jabber:iq:register'>
		<username>alice_publish_test_1985</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2022-01-27 15:35:52.244 ***
alice_publish_test_1985@fed1 in
<iq from='fed1' id='c593baa186414e88e85c9d23826c7e2a' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alice_publish_test_1985</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2022-01-27 15:35:52.245 ***
alice_publish_test_1985@fed1 out
</stream:stream>

*** User 2022-01-27 15:35:52.245 ***
alice_publish_test_1985@fed1 in
</stream:stream>

*** User 2022-01-27 15:35:52.246 ***
alicE_publish_test_1985@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:35:52.246 ***
alicE_publish_test_1985@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b18efcc0214a8a3' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.246 ***
alicE_publish_test_1985@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>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-01-27 15:35:52.246 ***
alicE_publish_test_1985@localhost out
<iq type='get' id='806b9defd3e2c35f6b5a82d94646b45d'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-01-27 15:35:52.247 ***
alicE_publish_test_1985@localhost in
<iq from='localhost' id='806b9defd3e2c35f6b5a82d94646b45d' 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-01-27 15:35:52.247 ***
alicE_publish_test_1985@localhost out
<iq type='set' id='69f915431644b75c6d3e84d4d91593be'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_publish_test_1985</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-01-27 15:35:52.251 ***
alicE_publish_test_1985@localhost in
<iq from='localhost' id='69f915431644b75c6d3e84d4d91593be' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_publish_test_1985</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-01-27 15:35:52.251 ***
alicE_publish_test_1985@localhost out
</stream:stream>

*** User 2022-01-27 15:35:52.252 ***
alicE_publish_test_1985@localhost in
</stream:stream>

*** User 2022-01-27 15:35:52.252 ***
alicE_publish_test_1985@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-01-27 15:35:52.253 ***
alicE_publish_test_1985@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5180c44b8794726' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.253 ***
alicE_publish_test_1985@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-01-27 15:35:52.253 ***
alicE_publish_test_1985@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3B1Ymxpc2hfdGVzdF8xOTg1AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:35:52.254 ***
alicE_publish_test_1985@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:35:52.254 ***
alicE_publish_test_1985@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-01-27 15:35:52.254 ***
alicE_publish_test_1985@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c2640d712c1bd13' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.255 ***
alicE_publish_test_1985@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-01-27 15:35:52.255 ***
alicE_publish_test_1985@localhost/res1 out
<iq type='set' id='99bbe738e8d7587a4cf9b8c923fedb0f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:35:52.255 ***
alicE_publish_test_1985@localhost/res1 in
<iq id='99bbe738e8d7587a4cf9b8c923fedb0f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_publish_test_1985@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:35:52.255 ***
alicE_publish_test_1985@localhost/res1 out
<iq type='set' id='4f8a3168d061728e3baea3fd4227dfab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:52.255 ***
alicE_publish_test_1985@localhost/res1 in
<iq type='result' id='4f8a3168d061728e3baea3fd4227dfab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:52.255 ***
alicE_publish_test_1985@localhost/res1 out
<presence/>



*** User 2022-01-27 15:35:52.257 ***
alicE_publish_test_1985@localhost/res1 in
<presence from='alicE_publish_test_1985@localhost/res1' to='alice_publish_test_1985@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:35:52.257 ***
alice_publish_test_1985@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:35:52.258 ***
alice_publish_test_1985@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a4ee0e1b6885c35b' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.258 ***
alice_publish_test_1985@fed1/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-512</mechanism>
		<mechanism>SCRAM-SHA-384</mechanism>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>SCRAM-SHA-224</mechanism>
		<mechanism>SCRAM-SHA-1</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:35:52.258 ***
alice_publish_test_1985@fed1/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3B1Ymxpc2hfdGVzdF8xOTg1AG1ha290YTI=</auth>



*** User 2022-01-27 15:35:52.260 ***
alice_publish_test_1985@fed1/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8d0255a0ce7c494' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 in
<stream:features>
	<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'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 out
<iq type='set' id='a3d4fa296bbf802195c22c05c2d180c7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 in
<iq id='a3d4fa296bbf802195c22c05c2d180c7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_publish_test_1985@fed1/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:35:52.261 ***
alice_publish_test_1985@fed1/res1 out
<iq type='set' id='52ce8ed72bede24c8036e0e8a1291609'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:52.262 ***
alice_publish_test_1985@fed1/res1 in
<iq type='result' id='52ce8ed72bede24c8036e0e8a1291609'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:52.262 ***
alice_publish_test_1985@fed1/res1 out
<presence/>



*** User 2022-01-27 15:35:52.262 ***
alice_publish_test_1985@fed1/res1 in
<presence from='alice_publish_test_1985@fed1/res1' to='alice_publish_test_1985@fed1/res1' xml:lang='en'/>



*** User 2022-01-27 15:35:52.262 ***
alicE_publish_test_1985@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-create_node' from='alicE_publish_test_1985@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create node='princely_musings_Kor8dMCwXeI='/>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.272 ***
alicE_publish_test_1985@localhost/res1 in
<iq from='pubsub.localhost' to='alicE_publish_test_1985@localhost/res1' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-create_node' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<create node='princely_musings_Kor8dMCwXeI='/>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.272 ***
alicE_publish_test_1985@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-publish' from='alicE_publish_test_1985@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<publish node='princely_musings_Kor8dMCwXeI='>
			<item id='item1'>
				<entry xmlns='http://www.w3.org/2005/Atom'/>
			</item>
		</publish>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.285 ***
alicE_publish_test_1985@localhost/res1 in
<iq from='pubsub.localhost' to='alicE_publish_test_1985@localhost/res1' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-publish' type='result'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<publish node='princely_musings_Kor8dMCwXeI='>
			<item id='item1'/>
		</publish>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.285 ***
alice_publish_test_1985@fed1/res1 out
<iq to='pubsub.localhost' type='set' id='alice_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-publish' from='alice_publish_test_1985@fed1/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<publish node='princely_musings_Kor8dMCwXeI='>
			<item id='item2'>
				<entry xmlns='http://www.w3.org/2005/Atom'/>
			</item>
		</publish>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.296 ***
alice_publish_test_1985@fed1/res1 in
<iq from='pubsub.localhost' to='alice_publish_test_1985@fed1/res1' type='error' xml:lang='en' id='alice_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-publish'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub'>
		<publish node='princely_musings_Kor8dMCwXeI='>
			<item id='item2'>
				<entry xmlns='http://www.w3.org/2005/Atom'/>
			</item>
		</publish>
	</pubsub>
	<error code='403' type='auth'>
		<forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
	</error>
</iq>



*** User 2022-01-27 15:35:52.296 ***
alicE_publish_test_1985@localhost/res1 out
<iq to='pubsub.localhost' type='set' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-delete_node' from='alicE_publish_test_1985@localhost/res1'>
	<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
		<delete node='princely_musings_Kor8dMCwXeI='/>
	</pubsub>
</iq>



*** User 2022-01-27 15:35:52.307 ***
alicE_publish_test_1985@localhost/res1 in
<iq from='pubsub.localhost' to='alicE_publish_test_1985@localhost/res1' id='alicE_publish_test_1985-pubsub.localhost-princely_musings_Kor8dMCwXeI=-delete_node' type='result'/>



*** User 2022-01-27 15:35:52.307 ***
alice_publish_test_1985@fed1/res1 out
</stream:stream>

*** User 2022-01-27 15:35:52.307 ***
alice_publish_test_1985@fed1/res1 in
</stream:stream>

*** User 2022-01-27 15:35:52.308 ***
alicE_publish_test_1985@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:52.308 ***
alicE_publish_test_1985@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:35:52.310 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:35:52.311 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5463.html



=== Ended at 2022-01-27 15:35:52
=== successfully completed test case
=== === Returned value: ok