=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.32432.1>},
{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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.privacy_SUITE.logs/run.2022-01-25_16.32.30/privacy_suite.allow_subscription_to_from_message.68228.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.privacy_SUITE.logs/run.2022-01-25_16.32.30/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@ebe8a8f9fc53.2022-01-25_16.21.59"
=== Started at 2022-01-25 16:32:31
*** User 2022-01-25 16:32:31.906 ***
alicE_allow_subscription_to_from_message_1946@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-25 16:32:31.907 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6eb07d963151460a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:32:31.907 ***
alicE_allow_subscription_to_from_message_1946@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-25 16:32:31.907 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTk0NgBtYXR5Z3J5c2E=</auth>
*** User 2022-01-25 16:32:31.908 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:32:31.908 ***
alicE_allow_subscription_to_from_message_1946@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-25 16:32:31.908 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='241c712001d77157' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:32:31.908 ***
alicE_allow_subscription_to_from_message_1946@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-25 16:32:31.908 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='088573d2e9ab89f47642fc66a5ae6374'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:32:31.909 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq id='088573d2e9ab89f47642fc66a5ae6374' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_allow_subscription_to_from_message_1946@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:32:31.909 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='c78686c80a2f95abe7422518578055da'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:32:31.909 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq type='result' id='c78686c80a2f95abe7422518578055da'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:32:31.909 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<presence/>
*** User 2022-01-25 16:32:31.911 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1946@localhost/res1' to='alice_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:32:31.911 ***
bOb_allow_subscription_to_from_message_1946@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-25 16:32:31.912 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c9cccd6d3b6ae7e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:32:31.912 ***
bOb_allow_subscription_to_from_message_1946@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-25 16:32:31.912 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE5NDYAbWFrcm9saWth</auth>
*** User 2022-01-25 16:32:31.913 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:32:31.913 ***
bOb_allow_subscription_to_from_message_1946@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-25 16:32:31.913 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fa80d52e38f19e4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:32:31.913 ***
bOb_allow_subscription_to_from_message_1946@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-25 16:32:31.914 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='62102bdbc7632e129b095184cb91cadb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:32:31.914 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq id='62102bdbc7632e129b095184cb91cadb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_allow_subscription_to_from_message_1946@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:32:31.914 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='bd6b814174b6a763eb42897ca88ef44c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:32:31.914 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq type='result' id='bd6b814174b6a763eb42897ca88ef44c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:32:31.914 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<presence/>
*** User 2022-01-25 16:32:31.916 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1946@localhost/res1' to='bob_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:32:31.916 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='eeea5138da9f73046dc4264d325b0d83'>
<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-25 16:32:31.920 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='push41ecb99d83ebcbec' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.920 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='eeea5138da9f73046dc4264d325b0d83' type='result'/>
*** User 2022-01-25 16:32:31.921 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='get' id='e55c9c9e0fc5147668d5e47a5b69f998'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.925 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='e55c9c9e0fc5147668d5e47a5b69f998' 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-25 16:32:31.925 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='d659213d4c31929bab1c578ac19e4035'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.931 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='d659213d4c31929bab1c578ac19e4035' type='result'/>
*** User 2022-01-25 16:32:31.931 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='c30a6a3f794692a11ea894cfe2302dd7'>
<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-25 16:32:31.936 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' id='pushe98da82720bba193' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.936 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' id='c30a6a3f794692a11ea894cfe2302dd7' type='result'/>
*** User 2022-01-25 16:32:31.936 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='get' id='2539b2694abeae2c368c59706f03a1e3'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.940 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' id='2539b2694abeae2c368c59706f03a1e3' 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-25 16:32:31.940 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<iq type='set' id='6abd4f51a255ae80cf66d8392fe3dc4d'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-01-25 16:32:31.943 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' id='6abd4f51a255ae80cf66d8392fe3dc4d' type='result'/>
*** User 2022-01-25 16:32:31.943 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1946@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-01-25 16:32:31.943 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1946@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-01-25 16:32:31.993 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1946@localhost/res1' to='alicE_allow_subscription_to_from_message_1946@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-25 16:32:31.993 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1946@localhost/res1' to='bOb_allow_subscription_to_from_message_1946@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-25 16:32:31.993 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1946@localhost'/>
*** User 2022-01-25 16:32:32.005 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='pushfe125e37e241a57e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1946@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:32:32.005 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-25 16:32:32.005 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1946@localhost'/>
*** User 2022-01-25 16:32:32.017 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1946@localhost' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' id='pusha68a600a29017c3a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1946@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:32:32.017 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' id='push7fcf273356fcd3f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1946@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:32:32.017 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1946@localhost' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-01-25 16:32:32.018 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1946@localhost/res1' to='alice_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:32:32.018 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1946@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-01-25 16:32:32.021 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1946@localhost/res1' to='alicE_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-01-25 16:32:32.021 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1946@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-01-25 16:32:32.024 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1946@localhost/res1' to='bOb_allow_subscription_to_from_message_1946@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-01-25 16:32:32.024 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:32:32.024 ***
bOb_allow_subscription_to_from_message_1946@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:32:32.025 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:32:32.025 ***
alicE_allow_subscription_to_from_message_1946@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-25 16:32:32
=== successfully completed test case
=== === Returned value: ok