=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.25775.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.privacy_SUITE.logs/run.2022-03-04_11.24.51/privacy_suite.allow_subscription_to_from_message.33797.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.privacy_SUITE.logs/run.2022-03-04_11.24.51/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:24:52
*** User 2022-03-04 11:24:52.770 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:52.770 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb7e48b89a97c36c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:52.770 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/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-03-04 11:24:52.770 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTc4MQBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:24:52.771 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:52.771 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:52.772 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11015a33dc6217f3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:52.772 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/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-04 11:24:52.772 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='01e33dc0d2d92b97f97f5d4ecbe63300'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:52.772 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq id='01e33dc0d2d92b97f97f5d4ecbe63300' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_allow_subscription_to_from_message_1781@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:52.772 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='408a43dd4c0f78800996f596cc93bf2b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:52.773 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq type='result' id='408a43dd4c0f78800996f596cc93bf2b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:52.773 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:52.774 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<presence from='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' to='alice_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:52.774 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:52.775 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7bdaf25c1731cd4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:52.775 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/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-03-04 11:24:52.775 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE3ODEAbWFrcm9saWth</auth>
*** User 2022-03-04 11:24:52.776 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:52.776 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:52.776 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a441738e3784618b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:52.776 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/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-04 11:24:52.776 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='d2e3f3c478774d9fd8083498634bf59c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:52.777 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq id='d2e3f3c478774d9fd8083498634bf59c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_allow_subscription_to_from_message_1781@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:52.777 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='7c3f847e47cb7d572b13b4aac55faf30'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:52.777 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq type='result' id='7c3f847e47cb7d572b13b4aac55faf30'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:52.777 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:52.779 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<presence from='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' to='bob_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:52.779 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='51466b0b5ebd736d486edc61e4b5ac97'>
<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-04 11:24:52.782 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='push1eefb326d1243096' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.782 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='51466b0b5ebd736d486edc61e4b5ac97' type='result'/>
*** User 2022-03-04 11:24:52.782 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='get' id='e9b0f11edbfa022fcdb028bc9c5bdb2d'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.785 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='e9b0f11edbfa022fcdb028bc9c5bdb2d' 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-04 11:24:52.785 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='bbd9918cd7f48da164873314570f1f3e'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.790 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='bbd9918cd7f48da164873314570f1f3e' type='result'/>
*** User 2022-03-04 11:24:52.790 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='d5d4627197a1dfb831b1447a383538bf'>
<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-04 11:24:52.795 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' id='push978acd01c8eaccb7' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.795 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' id='d5d4627197a1dfb831b1447a383538bf' type='result'/>
*** User 2022-03-04 11:24:52.795 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='get' id='6a2b6c80619c905cb39cd20152eb7628'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.798 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' id='6a2b6c80619c905cb39cd20152eb7628' 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-04 11:24:52.798 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<iq type='set' id='72309cec2cc1984e4c4556661cfcb7fa'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.801 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' id='72309cec2cc1984e4c4556661cfcb7fa' type='result'/>
*** User 2022-03-04 11:24:52.801 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<message to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.801 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<message to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.851 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<message from='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/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-04 11:24:52.852 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<message from='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/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-04 11:24:52.852 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1781@domain.example.com'/>
*** User 2022-03-04 11:24:52.859 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='push51b06eccc796cd63' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1781@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.859 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<presence from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-04 11:24:52.859 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1781@domain.example.com'/>
*** User 2022-03-04 11:24:52.866 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' id='push85a859ba322b3d72' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1781@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.866 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<iq from='alicE_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' id='pushf59e650e8d3eb4b6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1781@domain.example.com'/>
</query>
</iq>
*** User 2022-03-04 11:24:52.866 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<presence from='bOb_allow_subscription_to_from_message_1781@domain.example.com' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en' type='subscribed'/>
*** User 2022-03-04 11:24:52.867 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<presence from='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' to='alice_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:52.867 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<message to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.870 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<message from='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' to='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.870 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
<message to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.872 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
<message from='alicE_allow_subscription_to_from_message_1781@domain.example.com/res1' to='bOb_allow_subscription_to_from_message_1781@domain.example.com/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-03-04 11:24:52.872 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:52.873 ***
bOb_allow_subscription_to_from_message_1781@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:52.873 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:52.873 ***
alicE_allow_subscription_to_from_message_1781@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:24:52
=== successfully completed test case
=== === Returned value: ok