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

=== Config value:

    [{watchdog,<0.6495.1>},
     {escalus_no_stanzas_after_story,true},
     {backend,mnesia},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.privacy_SUITE.logs/run.2022-03-03_10.36.31/privacy_suite.allow_subscription_to_from_message.21508.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.privacy_SUITE.logs/run.2022-03-03_10.36.31/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 =>
            [{backend,ldap},
             {host,{prefix,<<"vjud.">>}},
             {ldap_base,"ou=Users,dc=esl,dc=com"},
             {ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:36:32


*** CT 2022-03-03 10:36:32.551 *** View log from node mongooseim@localhost when started mongooseim@localhost_4524.html
*** CT 2022-03-03 10:36:32.552 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:36:32.556 ***
alicE_allow_subscription_to_from_message_1035@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-03-03 10:36:32.557 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64217c2096f0f84a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:32.557 ***
alicE_allow_subscription_to_from_message_1035@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>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-03-03 10:36:32.557 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTAzNQBtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@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-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7cd9f5b321b107ed' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@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-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='0cf856228b70d4ed0b526c820004eda3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:32.558 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq id='0cf856228b70d4ed0b526c820004eda3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_allow_subscription_to_from_message_1035@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:32.559 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='eddf06b9952832b2a46963e5c92b3a23'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:32.559 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq type='result' id='eddf06b9952832b2a46963e5c92b3a23'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:32.559 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:32.559 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1035@localhost/res1' to='alice_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:32.560 ***
bOb_allow_subscription_to_from_message_1035@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-03-03 10:36:32.560 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cb5afaa462d287f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:32.560 ***
bOb_allow_subscription_to_from_message_1035@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>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-03-03 10:36:32.560 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzEwMzUAbWFrcm9saWth</auth>



*** User 2022-03-03 10:36:32.561 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:32.561 ***
bOb_allow_subscription_to_from_message_1035@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-03-03 10:36:32.561 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8acadd37908fc333' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@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-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='717b86d0b3c02552879cd02f9206cfef'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq id='717b86d0b3c02552879cd02f9206cfef' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_allow_subscription_to_from_message_1035@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='7b6c2070fcc306bf996e6ec91422cf59'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq type='result' id='7b6c2070fcc306bf996e6ec91422cf59'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:32.562 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:32.563 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1035@localhost/res1' to='bob_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:32.563 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='1108077b9b07220638dc1ea9394f3550'>
	<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-03-03 10:36:32.564 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='pushcc9baa250751f126' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.564 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='1108077b9b07220638dc1ea9394f3550' type='result'/>



*** User 2022-03-03 10:36:32.564 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='get' id='6cb01a4e6636ae0d2c97d92b2658c8fd'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.564 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='6cb01a4e6636ae0d2c97d92b2658c8fd' 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-03-03 10:36:32.564 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='512763dfad0126444121b48923d09a73'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_to'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.565 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='512763dfad0126444121b48923d09a73' type='result'/>



*** User 2022-03-03 10:36:32.565 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='c54bd631b3afde0abc7b04af5e84793a'>
	<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-03-03 10:36:32.566 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' id='pushbcf35a638fd2dd42' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.566 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' id='c54bd631b3afde0abc7b04af5e84793a' type='result'/>



*** User 2022-03-03 10:36:32.566 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='get' id='8b33b96ee762aa0448d34275fa6b34c9'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.566 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' id='8b33b96ee762aa0448d34275fa6b34c9' 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-03-03 10:36:32.566 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<iq type='set' id='a53f0f4adbf56ae0179d8c39153a6855'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_from'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.567 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' id='a53f0f4adbf56ae0179d8c39153a6855' type='result'/>



*** User 2022-03-03 10:36:32.567 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1035@localhost/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.567 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1035@localhost/res1' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.617 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1035@localhost/res1' to='alicE_allow_subscription_to_from_message_1035@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-03-03 10:36:32.617 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1035@localhost/res1' to='bOb_allow_subscription_to_from_message_1035@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-03-03 10:36:32.617 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1035@localhost'/>



*** User 2022-03-03 10:36:32.619 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='pusha709eb5728f18429' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1035@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.619 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en' type='subscribe'/>



*** User 2022-03-03 10:36:32.619 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1035@localhost'/>



*** User 2022-03-03 10:36:32.621 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1035@localhost' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' id='push2313b9b4887dc099' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_allow_subscription_to_from_message_1035@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.621 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' id='pushbb0cf48b0ffc6b43' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_allow_subscription_to_from_message_1035@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:36:32.621 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1035@localhost' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en' type='subscribed'/>



*** User 2022-03-03 10:36:32.621 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1035@localhost/res1' to='alice_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:32.621 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1035@localhost/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.622 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1035@localhost/res1' to='alicE_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.622 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1035@localhost/res1' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.622 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1035@localhost/res1' to='bOb_allow_subscription_to_from_message_1035@localhost/res1' xml:lang='en' type='chat'>
	<body>Hi, Bob XYZ!</body>
</message>



*** User 2022-03-03 10:36:32.623 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:32.623 ***
bOb_allow_subscription_to_from_message_1035@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:36:32.623 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:32.623 ***
alicE_allow_subscription_to_from_message_1035@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:36:32.625 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:36:32.625 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4524.html



=== Ended at 2022-03-03 10:36:32
=== successfully completed test case
=== === Returned value: ok