=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.76444.0>},
{escalus_no_stanzas_after_story,true},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@74579b554f9a.2024-03-06_10.03.35/big_tests.tests.privacy_SUITE.logs/run.2024-03-06_10.18.12/privacy_suite.allow_subscription_to_from_message.209282.html"},
{tc_group_properties,[{name,allowing},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@74579b554f9a.2024-03-06_10.03.35/big_tests.tests.privacy_SUITE.logs/run.2024-03-06_10.18.12/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@74579b554f9a.2024-03-06_10.03.35"
=== Started at 2024-03-06 10:18:13
*** User 2024-03-06 10:18:13.573 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-06 10:18:13.573 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3873593b6b140107' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-06 10:18:13.573 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-06 10:18:13.573 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjg5MwBtYXR5Z3J5c2E=</auth>
*** User 2024-03-06 10:18:13.574 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-06 10:18:13.574 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-06 10:18:13.574 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b5173d49b4235bd' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2893@localhost'>
*** User 2024-03-06 10:18:13.574 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-06 10:18:13.574 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='f60931ffb270402400e396dadcc947d9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-06 10:18:13.575 ***🔗
alicE_allow_subscription_to_from_message_2893@localhost/res1 in
<iq id='f60931ffb270402400e396dadcc947d9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2893@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-06 10:18:13.575 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='7727ac7b2e00e1790d84a92b7bc1ae24'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-06 10:18:13.576 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='7727ac7b2e00e1790d84a92b7bc1ae24' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-06 10:18:13.576 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<presence/>
*** User 2024-03-06 10:18:13.577 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2893@localhost/res1' to='alice_allow_subscription_to_from_message_2893@localhost/res1'/>
*** User 2024-03-06 10:18:13.578 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-06 10:18:13.578 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8830678915d945f7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-06 10:18:13.578 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-06 10:18:13.578 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI4OTMAbWFrcm9saWth</auth>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bba5ed098828dc24' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2893@localhost'>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='a312fc6e4efc845b46aa89d2c6297f10'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-06 10:18:13.579 ***🔗
bOb_allow_subscription_to_from_message_2893@localhost/res1 in
<iq id='a312fc6e4efc845b46aa89d2c6297f10' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2893@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-06 10:18:13.579 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='e1b0153b2ceb7b5fb0480779d8a57bed'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-06 10:18:13.580 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='e1b0153b2ceb7b5fb0480779d8a57bed' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-06 10:18:13.580 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<presence/>
*** User 2024-03-06 10:18:13.582 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2893@localhost/res1' to='bob_allow_subscription_to_from_message_2893@localhost/res1'/>
*** User 2024-03-06 10:18:13.582 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='8cca965634a24dc56351e27f9e8ad909'>
<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 2024-03-06 10:18:13.585 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='push117741a3b615ca06' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.585 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='8cca965634a24dc56351e27f9e8ad909' type='result'/>
*** User 2024-03-06 10:18:13.585 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='get' id='d167b97c29a303be530bc981544e6ca8'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.586 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='d167b97c29a303be530bc981544e6ca8' 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 2024-03-06 10:18:13.586 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='6128ac1670f74fff75811e5655817540'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.587 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='6128ac1670f74fff75811e5655817540' type='result'/>
*** User 2024-03-06 10:18:13.587 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='78241d62d98dafa61c47949806608302'>
<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 2024-03-06 10:18:13.590 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='push9e586db8e490946d' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.590 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='78241d62d98dafa61c47949806608302' type='result'/>
*** User 2024-03-06 10:18:13.590 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='get' id='f6fb39a09b26d361ff7b09913966a693'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.591 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='f6fb39a09b26d361ff7b09913966a693' 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 2024-03-06 10:18:13.591 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<iq type='set' id='036fe0696db68c5818c5282f109eefb3'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.592 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='036fe0696db68c5818c5282f109eefb3' type='result'/>
*** User 2024-03-06 10:18:13.592 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2893@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.592 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2893@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.642 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2893@localhost/res1' to='alice_allow_subscription_to_from_message_2893@localhost/res1' type='error'>
<body>Hi, Bob XYZ!</body>
<error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>
*** User 2024-03-06 10:18:13.642 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2893@localhost/res1' to='bob_allow_subscription_to_from_message_2893@localhost/res1' type='error'>
<body>Hi, Alice XYZ!</body>
<error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>
*** User 2024-03-06 10:18:13.643 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2893@localhost'/>
*** User 2024-03-06 10:18:13.647 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='push2c8369b54d2e28b7' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2893@localhost'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.647 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' type='subscribe'/>
*** User 2024-03-06 10:18:13.647 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2893@localhost'/>
*** User 2024-03-06 10:18:13.651 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2893@localhost' to='bob_allow_subscription_to_from_message_2893@localhost/res1' id='push3bb2076b803c4c05' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2893@localhost'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.651 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' id='pushe3dee1fa672fcad2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2893@localhost'/>
</query>
</iq>
*** User 2024-03-06 10:18:13.651 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2893@localhost' to='alice_allow_subscription_to_from_message_2893@localhost/res1' type='subscribed'/>
*** User 2024-03-06 10:18:13.652 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2893@localhost/res1' to='alice_allow_subscription_to_from_message_2893@localhost/res1'/>
*** User 2024-03-06 10:18:13.652 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2893@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.654 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2893@localhost/res1' to='alice_allow_subscription_to_from_message_2893@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.654 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2893@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.656 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2893@localhost/res1' to='bob_allow_subscription_to_from_message_2893@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-06 10:18:13.656 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 out
</stream:stream>
*** User 2024-03-06 10:18:13.657 ***🔗
bob_allow_subscription_to_from_message_2893@localhost/res1 in
</stream:stream>
*** User 2024-03-06 10:18:13.657 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 out
</stream:stream>
*** User 2024-03-06 10:18:13.658 ***🔗
alice_allow_subscription_to_from_message_2893@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-06 10:18:13
=== successfully completed test case
=== === Returned value: ok