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

=== Config value:

    [{watchdog,<0.6350.1>},
     {escalus_no_stanzas_after_story,true},
     {backend,mnesia},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
     {preset,"internal_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.privacy_SUITE.logs/run.2022-01-27_15.33.59/privacy_suite.allow_subscription_to_from_message.15620.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.privacy_SUITE.logs/run.2022-01-27_15.33.59/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 => [],mod_sic => [],mod_stream_management => [],
        mod_vcard => [{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07"

=== Started at 2022-01-27 15:34:00


*** CT 2022-01-27 15:34:00.896 *** View log from node mongooseim@localhost when started mongooseim@localhost_4764.html
*** CT 2022-01-27 15:34:00.897 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2357.html

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

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



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



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

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



*** User 2022-01-27 15:34:00.903 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq id='0039ef3d4ed02f2c05a51cad37ffa6b5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_allow_subscription_to_from_message_1090@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:34:00.910 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 out
<iq type='set' id='6e99057c28b272ce8b78fa098963cc9d'>
	<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:00.911 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1090@localhost' to='alicE_allow_subscription_to_from_message_1090@localhost/res1' id='push1a352ad677a8c35d' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-01-27 15:34:00.911 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1090@localhost' to='alicE_allow_subscription_to_from_message_1090@localhost/res1' id='6e99057c28b272ce8b78fa098963cc9d' type='result'/>



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



*** User 2022-01-27 15:34:00.911 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1090@localhost' to='alicE_allow_subscription_to_from_message_1090@localhost/res1' id='5a69df8ded826b867553e1fe4eb64c1c' 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:00.911 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 out
<iq type='set' id='10b21f07fb8dd6e721347dfc5dbd06e6'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-01-27 15:34:00.912 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1090@localhost' to='alicE_allow_subscription_to_from_message_1090@localhost/res1' id='10b21f07fb8dd6e721347dfc5dbd06e6' type='result'/>



*** User 2022-01-27 15:34:00.912 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 out
<iq type='set' id='de4ae13d024bd35b13a4d58607fb638f'>
	<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:00.912 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1090@localhost' to='bOb_allow_subscription_to_from_message_1090@localhost/res1' id='push35a9badb70a7d2f0' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-01-27 15:34:00.912 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1090@localhost' to='bOb_allow_subscription_to_from_message_1090@localhost/res1' id='de4ae13d024bd35b13a4d58607fb638f' type='result'/>



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



*** User 2022-01-27 15:34:00.913 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1090@localhost' to='bOb_allow_subscription_to_from_message_1090@localhost/res1' id='9d50ddac22a3105ef8ff1d33e8024084' 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:00.913 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 out
<iq type='set' id='e6d89922e7c1de0d7812ce4ac4a54555'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-01-27 15:34:00.914 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1090@localhost' to='bOb_allow_subscription_to_from_message_1090@localhost/res1' id='e6d89922e7c1de0d7812ce4ac4a54555' type='result'/>



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



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



*** User 2022-01-27 15:34:00.965 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1090@localhost/res1' to='alicE_allow_subscription_to_from_message_1090@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:00.965 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1090@localhost/res1' to='bOb_allow_subscription_to_from_message_1090@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:00.965 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1090@localhost'/>



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



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



*** User 2022-01-27 15:34:00.967 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1090@localhost'/>



*** User 2022-01-27 15:34:00.968 ***
bOb_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1090@localhost' to='bOb_allow_subscription_to_from_message_1090@localhost/res1' id='push0b147f1d019049b2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_allow_subscription_to_from_message_1090@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:34:00.969 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1090@localhost' to='alicE_allow_subscription_to_from_message_1090@localhost/res1' id='push87754e2e425e1c58' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_allow_subscription_to_from_message_1090@localhost'/>
	</query>
</iq>



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



*** User 2022-01-27 15:34:00.969 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1090@localhost/res1' to='alice_allow_subscription_to_from_message_1090@localhost/res1' xml:lang='en'/>



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



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



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



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



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

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

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

*** User 2022-01-27 15:34:00.971 ***
alicE_allow_subscription_to_from_message_1090@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:34:00.973 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2357.html
*** CT 2022-01-27 15:34:00.973 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4764.html



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