=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)

=== Config value:

    [{watchdog,<0.257.2>},
     {escalus_no_stanzas_after_story,true},
     {backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_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.privacy_SUITE.logs/run.2022-01-27_15.34.58/privacy_suite.allow_subscription_to_from_message.132610.html"},
     {tc_group_properties,[{name,allowing},{repeat_until_all_ok,3},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/privacy_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.privacy_SUITE.logs/run.2022-01-27_15.34.58/log_private/"},
     {{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:34:59


*** CT 2022-01-27 15:34:59.691 *** View log from node mongooseim@localhost when started mongooseim@localhost_5451.html
*** CT 2022-01-27 15:34:59.692 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:34:59.700 ***
alicE_allow_subscription_to_from_message_1875@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:34:59.701 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7573477ca82cdedb' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 15:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@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:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='310af3254e9c1bea' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@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:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='09faef13bb73e264057456daeb2eb907'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq id='09faef13bb73e264057456daeb2eb907' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_allow_subscription_to_from_message_1875@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:59.702 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='bd1028d6d804ced4889c09973a859ae5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:59.703 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq type='result' id='bd1028d6d804ced4889c09973a859ae5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:59.703 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:59.705 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1875@localhost/res1' to='alice_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:59.705 ***
bOb_allow_subscription_to_from_message_1875@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:34:59.705 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e42f5d34388f474' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 15:34:59.706 ***
bOb_allow_subscription_to_from_message_1875@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:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6db2e71b2572e563' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@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:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='349ed0ce747a5b145ffa078e5328bbe3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq id='349ed0ce747a5b145ffa078e5328bbe3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_allow_subscription_to_from_message_1875@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='1e9cc216c6d0b782a9f591959dfea518'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq type='result' id='1e9cc216c6d0b782a9f591959dfea518'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:34:59.707 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<presence/>



*** User 2022-01-27 15:34:59.709 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1875@localhost/res1' to='bob_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:59.710 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='2499167e69b2554aa9a248e7be6be529'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'>
			<item order='1' type='subscription' value='to' action='allow'>
				<message/>
			</item>
			<item order='2' action='deny'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-01-27 15:34:59.715 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='push8dc90a9d5dc1bfd9' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.715 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='2499167e69b2554aa9a248e7be6be529' type='result'/>



*** User 2022-01-27 15:34:59.715 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='get' id='de3fe61e09c43fbac103a70f43eea862'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.717 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='de3fe61e09c43fbac103a70f43eea862' type='result'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'>
			<item type='subscription' value='to' action='allow' order='1'>
				<message/>
			</item>
			<item action='deny' order='2'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-01-27 15:34:59.718 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='8939464b1a4998d465fd1f179e545552'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.722 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='8939464b1a4998d465fd1f179e545552' type='result'/>



*** User 2022-01-27 15:34:59.722 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='501c0b3088108baafc15696486eb47ae'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'>
			<item order='1' type='subscription' value='from' action='allow'>
				<message/>
			</item>
			<item order='2' action='deny'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-01-27 15:34:59.725 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' id='pushfa4f27a71e8ebcdb' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.725 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' id='501c0b3088108baafc15696486eb47ae' type='result'/>



*** User 2022-01-27 15:34:59.725 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='get' id='ad1b8175ac4c97ec7bef259fd51806cc'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.728 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' id='ad1b8175ac4c97ec7bef259fd51806cc' type='result'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'>
			<item type='subscription' value='from' action='allow' order='1'>
				<message/>
			</item>
			<item action='deny' order='2'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-01-27 15:34:59.728 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<iq type='set' id='450044ab7ffdf788a36851fb3002c5fe'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.730 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' id='450044ab7ffdf788a36851fb3002c5fe' type='result'/>



*** User 2022-01-27 15:34:59.730 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1875@localhost/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.730 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1875@localhost/res1' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.780 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1875@localhost/res1' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' type='error' xml:lang='en'>
	<body>Hi, Bob XYZ!</body>
	<error code='503' type='cancel'>
		<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
	</error>
</message>



*** User 2022-01-27 15:34:59.780 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1875@localhost/res1' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' type='error' xml:lang='en'>
	<body>Hi, Alice XYZ!</body>
	<error code='503' type='cancel'>
		<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
	</error>
</message>



*** User 2022-01-27 15:34:59.780 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1875@localhost'/>



*** User 2022-01-27 15:34:59.798 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='pushc03feb8274946ea0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1875@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.799 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en' type='subscribe'/>



*** User 2022-01-27 15:34:59.799 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1875@localhost'/>



*** User 2022-01-27 15:34:59.815 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1875@localhost' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' id='push3dead955e2823f68' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_allow_subscription_to_from_message_1875@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.815 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' id='pushb66fcd06f450b74d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_allow_subscription_to_from_message_1875@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:34:59.815 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1875@localhost' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en' type='subscribed'/>



*** User 2022-01-27 15:34:59.817 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1875@localhost/res1' to='alice_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:34:59.817 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1875@localhost/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.819 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1875@localhost/res1' to='alicE_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.819 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1875@localhost/res1' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.822 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1875@localhost/res1' to='bOb_allow_subscription_to_from_message_1875@localhost/res1' xml:lang='en' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-01-27 15:34:59.822 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:34:59.822 ***
bOb_allow_subscription_to_from_message_1875@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:34:59.822 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:34:59.823 ***
alicE_allow_subscription_to_from_message_1875@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:34:59.825 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:34:59.826 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5451.html



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