=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.10325.2>},
{escalus_no_stanzas_after_story,true},
{backend,rdbms},
{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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.privacy_SUITE.logs/run.2023-12-04_15.53.51/privacy_suite.allow_subscription_to_from_message.216322.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.privacy_SUITE.logs/run.2023-12-04_15.53.51/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_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@cdcecdf9c9e0.2023-12-04_15.40.23"
=== Started at 2023-12-04 15:53:52
*** User 2023-12-04 15:53:52.655 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-04 15:53:52.656 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5a9308a7fc8c737d' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-04 15:53:52.656 ***🔗
alicE_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.656 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjc4MQBtYXR5Z3J5c2E=</auth>
*** User 2023-12-04 15:53:52.657 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-04 15:53:52.657 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-04 15:53:52.658 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='973843b8eeb46820' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2781@localhost'>
*** User 2023-12-04 15:53:52.658 ***🔗
alicE_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.658 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='f8ebf97b06e0b87393f78c692aac0742'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-04 15:53:52.658 ***🔗
alicE_allow_subscription_to_from_message_2781@localhost/res1 in
<iq id='f8ebf97b06e0b87393f78c692aac0742' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2781@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-04 15:53:52.658 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='bbab12c8a4223986dc23d11516a11def'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:53:52.664 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='bbab12c8a4223986dc23d11516a11def' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:53:52.664 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<presence/>
*** User 2023-12-04 15:53:52.666 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2781@localhost/res1' to='alice_allow_subscription_to_from_message_2781@localhost/res1'/>
*** User 2023-12-04 15:53:52.666 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-04 15:53:52.666 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f32e2bc3f5287a39' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-04 15:53:52.667 ***🔗
bOb_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.667 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI3ODEAbWFrcm9saWth</auth>
*** User 2023-12-04 15:53:52.667 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-04 15:53:52.667 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-12-04 15:53:52.668 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20f2691c4efa5d49' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2781@localhost'>
*** User 2023-12-04 15:53:52.668 ***🔗
bOb_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.668 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='b75d7664e420c849eb0e77b4c29aadd3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-04 15:53:52.668 ***🔗
bOb_allow_subscription_to_from_message_2781@localhost/res1 in
<iq id='b75d7664e420c849eb0e77b4c29aadd3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2781@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-04 15:53:52.668 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='f2f69315b8d80afc7a1d06814de68a91'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:53:52.670 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='f2f69315b8d80afc7a1d06814de68a91' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:53:52.670 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<presence/>
*** User 2023-12-04 15:53:52.671 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2781@localhost/res1' to='bob_allow_subscription_to_from_message_2781@localhost/res1'/>
*** User 2023-12-04 15:53:52.671 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='fdfd2ad20f3ddfb2dd36782f0e9197b0'>
<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 2023-12-04 15:53:52.678 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='push06c10b7e318d582a' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.678 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='fdfd2ad20f3ddfb2dd36782f0e9197b0' type='result'/>
*** User 2023-12-04 15:53:52.678 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='get' id='b3afc08bd60b70ae58c56f5cde3ea05c'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.679 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='b3afc08bd60b70ae58c56f5cde3ea05c' 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 2023-12-04 15:53:52.679 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='26f4e82da0448bd4aca492d009008d1a'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.681 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='26f4e82da0448bd4aca492d009008d1a' type='result'/>
*** User 2023-12-04 15:53:52.681 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='cdfdfbbe0500575b03ee4e875cd8762d'>
<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 2023-12-04 15:53:52.701 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='pushaf82b6e493369325' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.701 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='cdfdfbbe0500575b03ee4e875cd8762d' type='result'/>
*** User 2023-12-04 15:53:52.701 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='get' id='99330fb521af37f2b8f005e379bc6a3a'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.702 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='99330fb521af37f2b8f005e379bc6a3a' 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 2023-12-04 15:53:52.702 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<iq type='set' id='e43f8c97ee311d6e41678a2cbbbace36'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.709 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='e43f8c97ee311d6e41678a2cbbbace36' type='result'/>
*** User 2023-12-04 15:53:52.709 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.709 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.760 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2781@localhost/res1' to='alice_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.761 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2781@localhost/res1' to='bob_allow_subscription_to_from_message_2781@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 2023-12-04 15:53:52.761 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2781@localhost'/>
*** User 2023-12-04 15:53:52.774 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='push51f2d4b0fbd2e6b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2781@localhost'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.775 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' type='subscribe'/>
*** User 2023-12-04 15:53:52.775 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2781@localhost'/>
*** User 2023-12-04 15:53:52.787 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2781@localhost' to='bob_allow_subscription_to_from_message_2781@localhost/res1' id='pushe3c448a310c559bb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2781@localhost'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.787 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' id='push7f2324d621fa840a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2781@localhost'/>
</query>
</iq>
*** User 2023-12-04 15:53:52.787 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2781@localhost' to='alice_allow_subscription_to_from_message_2781@localhost/res1' type='subscribed'/>
*** User 2023-12-04 15:53:52.788 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2781@localhost/res1' to='alice_allow_subscription_to_from_message_2781@localhost/res1'/>
*** User 2023-12-04 15:53:52.788 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.790 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2781@localhost/res1' to='alice_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.790 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.793 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2781@localhost/res1' to='bob_allow_subscription_to_from_message_2781@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-12-04 15:53:52.793 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 out
</stream:stream>
*** User 2023-12-04 15:53:52.794 ***🔗
bob_allow_subscription_to_from_message_2781@localhost/res1 in
</stream:stream>
*** User 2023-12-04 15:53:52.794 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 out
</stream:stream>
*** User 2023-12-04 15:53:52.798 ***🔗
alice_allow_subscription_to_from_message_2781@localhost/res1 in
</stream:stream>
=== Ended at 2023-12-04 15:53:52
=== successfully completed test case
=== === Returned value: ok