=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.844.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.privacy_SUITE.logs/run.2022-02-03_16.38.30/privacy_suite.allow_subscription_to_from_message.151682.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.privacy_SUITE.logs/run.2022-02-03_16.38.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@c0783a4ae5cf.2022-02-03_16.28.29"
=== Started at 2022-02-03 16:38:31
*** User 2022-02-03 16:38:31.976 ***
alicE_allow_subscription_to_from_message_1935@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-02-03 16:38:31.976 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f98c7e75664f7c6f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-02-03 16:38:31.976 ***
alicE_allow_subscription_to_from_message_1935@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-02-03 16:38:31.976 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTkzNQBtYXR5Z3J5c2E=</auth>
*** User 2022-02-03 16:38:31.977 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-03 16:38:31.977 ***
alicE_allow_subscription_to_from_message_1935@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-02-03 16:38:31.977 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='87fcf6ddff5c922b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-02-03 16:38:31.977 ***
alicE_allow_subscription_to_from_message_1935@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-02-03 16:38:31.977 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='ecfd4a1b4ee4e91460a4c60cdc5583eb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-03 16:38:31.978 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq id='ecfd4a1b4ee4e91460a4c60cdc5583eb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_allow_subscription_to_from_message_1935@localhost/res1</jid>
</bind>
</iq>
*** User 2022-02-03 16:38:31.978 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='8858ef25065043ffe2a10a75879af617'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-03 16:38:31.978 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq type='result' id='8858ef25065043ffe2a10a75879af617'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-03 16:38:31.978 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<presence/>
*** User 2022-02-03 16:38:31.980 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1935@localhost/res1' to='alice_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en'/>
*** User 2022-02-03 16:38:31.981 ***
bOb_allow_subscription_to_from_message_1935@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-02-03 16:38:31.981 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eedf1fada6f05be7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-02-03 16:38:31.981 ***
bOb_allow_subscription_to_from_message_1935@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-02-03 16:38:31.981 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE5MzUAbWFrcm9saWth</auth>
*** User 2022-02-03 16:38:31.983 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-03 16:38:31.983 ***
bOb_allow_subscription_to_from_message_1935@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-02-03 16:38:31.983 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d92b7213e3de0d03' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-02-03 16:38:31.983 ***
bOb_allow_subscription_to_from_message_1935@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-02-03 16:38:31.983 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='4ad6367acc6ac94ede315893619f7e26'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-03 16:38:31.984 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq id='4ad6367acc6ac94ede315893619f7e26' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_allow_subscription_to_from_message_1935@localhost/res1</jid>
</bind>
</iq>
*** User 2022-02-03 16:38:31.984 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='0f16100c4fefba08659acbcb9f4460cd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-03 16:38:31.984 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq type='result' id='0f16100c4fefba08659acbcb9f4460cd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-03 16:38:31.984 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<presence/>
*** User 2022-02-03 16:38:31.986 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1935@localhost/res1' to='bob_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en'/>
*** User 2022-02-03 16:38:31.987 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='48fc18f2a4e423d8617db2ce2de0591c'>
<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-02-03 16:38:31.991 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='push730d0ccd0f18b131' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-02-03 16:38:31.991 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='48fc18f2a4e423d8617db2ce2de0591c' type='result'/>
*** User 2022-02-03 16:38:31.992 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='get' id='2650057bf3a0625fce7bb61a1f6ea3c6'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-02-03 16:38:31.995 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='2650057bf3a0625fce7bb61a1f6ea3c6' 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-02-03 16:38:31.995 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='359cb7742addccd2cab0bd44bba2b957'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.002 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='359cb7742addccd2cab0bd44bba2b957' type='result'/>
*** User 2022-02-03 16:38:32.002 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='f84d011a45e674ec2d986a33851c3da3'>
<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-02-03 16:38:32.006 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' id='pushcbef09d864998845' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.006 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' id='f84d011a45e674ec2d986a33851c3da3' type='result'/>
*** User 2022-02-03 16:38:32.006 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='get' id='de0c0b1d038f2005808b17f5d25ce3ca'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.010 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' id='de0c0b1d038f2005808b17f5d25ce3ca' 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-02-03 16:38:32.010 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<iq type='set' id='99cc0c841eb4177c85d301f3b4d54de1'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.013 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' id='99cc0c841eb4177c85d301f3b4d54de1' type='result'/>
*** User 2022-02-03 16:38:32.013 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1935@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.013 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1935@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.065 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1935@localhost/res1' to='alicE_allow_subscription_to_from_message_1935@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-02-03 16:38:32.065 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1935@localhost/res1' to='bOb_allow_subscription_to_from_message_1935@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-02-03 16:38:32.065 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<presence type='subscribe' to='bOb_allow_subscription_to_from_message_1935@localhost'/>
*** User 2022-02-03 16:38:32.073 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='pushad2fa73134911602' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1935@localhost'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.074 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<presence from='alicE_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-02-03 16:38:32.074 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<presence type='subscribed' to='alicE_allow_subscription_to_from_message_1935@localhost'/>
*** User 2022-02-03 16:38:32.082 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='bOb_allow_subscription_to_from_message_1935@localhost' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' id='pushc9b55da04381cf7d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1935@localhost'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.083 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<iq from='alicE_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' id='push50f4abe34e52b765' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1935@localhost'/>
</query>
</iq>
*** User 2022-02-03 16:38:32.083 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1935@localhost' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-02-03 16:38:32.084 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<presence from='bOb_allow_subscription_to_from_message_1935@localhost/res1' to='alice_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en'/>
*** User 2022-02-03 16:38:32.084 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
<message to='alicE_allow_subscription_to_from_message_1935@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.088 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
<message from='bOb_allow_subscription_to_from_message_1935@localhost/res1' to='alicE_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.088 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
<message to='bOb_allow_subscription_to_from_message_1935@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.100 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
<message from='alicE_allow_subscription_to_from_message_1935@localhost/res1' to='bOb_allow_subscription_to_from_message_1935@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-02-03 16:38:32.100 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 out
</stream:stream>
*** User 2022-02-03 16:38:32.100 ***
bOb_allow_subscription_to_from_message_1935@localhost/res1 in
</stream:stream>
*** User 2022-02-03 16:38:32.100 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 out
</stream:stream>
*** User 2022-02-03 16:38:32.100 ***
alicE_allow_subscription_to_from_message_1935@localhost/res1 in
</stream:stream>
=== Ended at 2022-02-03 16:38:32
=== successfully completed test case
=== === Returned value: ok