=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.6917.2>},
{escalus_no_stanzas_after_story,true},
{backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.privacy_SUITE.logs/run.2022-05-18_10.09.03/privacy_suite.allow_subscription_to_from_message.41605.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@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.privacy_SUITE.logs/run.2022-05-18_10.09.03/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20"
=== Started at 2022-05-18 10:09:04
*** User 2022-05-18 10:09:04.575 ***
alicE_allow_subscription_to_from_message_2159@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-05-18 10:09:04.575 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e88f04ba7bbc474' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:09:04.575 ***
alicE_allow_subscription_to_from_message_2159@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-05-18 10:09:04.575 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjE1OQBtYXR5Z3J5c2E=</auth>
*** User 2022-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@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-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de40fa906200afab' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@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-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='90557cfecd000369214ea4401c40f80c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:09:04.576 ***
alicE_allow_subscription_to_from_message_2159@localhost/res1 in
<iq id='90557cfecd000369214ea4401c40f80c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2159@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:09:04.576 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='a93554bcc874df1a772ce40ea1d4d561'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:09:04.577 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq type='result' id='a93554bcc874df1a772ce40ea1d4d561'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:09:04.577 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<presence/>
*** User 2022-05-18 10:09:04.578 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2159@localhost/res1' to='alice_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:09:04.578 ***
bOb_allow_subscription_to_from_message_2159@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-05-18 10:09:04.579 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='91074026262b23a8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:09:04.579 ***
bOb_allow_subscription_to_from_message_2159@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-05-18 10:09:04.579 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzIxNTkAbWFrcm9saWth</auth>
*** User 2022-05-18 10:09:04.579 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:09:04.579 ***
bOb_allow_subscription_to_from_message_2159@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-05-18 10:09:04.580 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a15d1935b289f070' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:09:04.580 ***
bOb_allow_subscription_to_from_message_2159@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-05-18 10:09:04.580 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='e80d809c76f32a072cd8c3a0a6a9a36a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:09:04.580 ***
bOb_allow_subscription_to_from_message_2159@localhost/res1 in
<iq id='e80d809c76f32a072cd8c3a0a6a9a36a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2159@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:09:04.580 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='195598e6fa5c60548741533da436e682'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:09:04.580 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq type='result' id='195598e6fa5c60548741533da436e682'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:09:04.580 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<presence/>
*** User 2022-05-18 10:09:04.581 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2159@localhost/res1' to='bob_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:09:04.581 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='714c4d0dadddf1d319fbf7136061b99b'>
<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-05-18 10:09:04.583 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='pusha8c1e2c0460f12b7' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.583 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='714c4d0dadddf1d319fbf7136061b99b' type='result'/>
*** User 2022-05-18 10:09:04.584 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='get' id='5f7ec05d1e2c7787d22ab1927457449c'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.584 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='5f7ec05d1e2c7787d22ab1927457449c' 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-05-18 10:09:04.584 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='0ea39e7039d5bbc6409770f84fb33470'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.586 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='0ea39e7039d5bbc6409770f84fb33470' type='result'/>
*** User 2022-05-18 10:09:04.586 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='02318b3ad2c2f13d6a580f85f129f19e'>
<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-05-18 10:09:04.588 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' id='pushcf3cd2dde90d8075' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.588 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' id='02318b3ad2c2f13d6a580f85f129f19e' type='result'/>
*** User 2022-05-18 10:09:04.588 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='get' id='bc0a9580da24711a01f9a640a86bd241'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.589 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' id='bc0a9580da24711a01f9a640a86bd241' 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-05-18 10:09:04.589 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<iq type='set' id='402e0ade55f20a58f880b254dd48f125'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.590 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' id='402e0ade55f20a58f880b254dd48f125' type='result'/>
*** User 2022-05-18 10:09:04.590 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_2159@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.591 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_2159@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.641 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2159@localhost/res1' to='alice_allow_subscription_to_from_message_2159@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-05-18 10:09:04.642 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2159@localhost/res1' to='bob_allow_subscription_to_from_message_2159@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-05-18 10:09:04.642 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2159@localhost'/>
*** User 2022-05-18 10:09:04.646 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='push859c75e7a29135e1' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2159@localhost'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.646 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-05-18 10:09:04.646 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2159@localhost'/>
*** User 2022-05-18 10:09:04.650 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2159@localhost' to='bob_allow_subscription_to_from_message_2159@localhost/res1' id='push665ffbe4eefdbbb2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2159@localhost'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.651 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' id='push5f03420fb62a5ab1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2159@localhost'/>
</query>
</iq>
*** User 2022-05-18 10:09:04.651 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2159@localhost' to='alice_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-05-18 10:09:04.651 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2159@localhost/res1' to='alice_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:09:04.651 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_2159@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.653 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2159@localhost/res1' to='alice_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.653 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_2159@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.654 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2159@localhost/res1' to='bob_allow_subscription_to_from_message_2159@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-05-18 10:09:04.654 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:09:04.654 ***
bob_allow_subscription_to_from_message_2159@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:09:04.654 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:09:04.655 ***
alice_allow_subscription_to_from_message_2159@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:09:04
=== successfully completed test case
=== === Returned value: ok