=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.78594.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@ba61420e19a8.2024-03-11_11.24.31/big_tests.tests.privacy_SUITE.logs/run.2024-03-11_11.38.13/privacy_suite.allow_subscription_to_from_message.160515.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@ba61420e19a8.2024-03-11_11.24.31/big_tests.tests.privacy_SUITE.logs/run.2024-03-11_11.38.13/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,versioning => false,
store_current_id => false,backend => rdbms},
mod_amp => #{},
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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ba61420e19a8.2024-03-11_11.24.31"
=== Started at 2024-03-11 11:38:14
*** User 2024-03-11 11:38:14.722 ***🔗
alicE_allow_subscription_to_from_message_2982@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-11 11:38:14.723 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59c842d80c079e91' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:38:14.723 ***🔗
alicE_allow_subscription_to_from_message_2982@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-11 11:38:14.723 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjk4MgBtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 11:38:14.723 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:38:14.724 ***🔗
alicE_allow_subscription_to_from_message_2982@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-11 11:38:14.724 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b63a4b6e5352da3f' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2982@localhost'>
*** User 2024-03-11 11:38:14.724 ***🔗
alicE_allow_subscription_to_from_message_2982@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-11 11:38:14.724 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='a6ca8693f36431995f5b2de24e72f4e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:38:14.724 ***🔗
alicE_allow_subscription_to_from_message_2982@localhost/res1 in
<iq id='a6ca8693f36431995f5b2de24e72f4e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2982@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:38:14.724 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='f591224f93eea3831b6df4fcd7a15b06'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:38:14.725 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='f591224f93eea3831b6df4fcd7a15b06' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:38:14.725 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<presence/>
*** User 2024-03-11 11:38:14.727 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2982@localhost/res1' to='alice_allow_subscription_to_from_message_2982@localhost/res1'/>
*** User 2024-03-11 11:38:14.728 ***🔗
bOb_allow_subscription_to_from_message_2982@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-11 11:38:14.728 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1e0c4d72357590f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:38:14.728 ***🔗
bOb_allow_subscription_to_from_message_2982@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-11 11:38:14.728 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI5ODIAbWFrcm9saWth</auth>
*** User 2024-03-11 11:38:14.729 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:38:14.729 ***🔗
bOb_allow_subscription_to_from_message_2982@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-11 11:38:14.729 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c0fa4e50dd20ae0' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2982@localhost'>
*** User 2024-03-11 11:38:14.730 ***🔗
bOb_allow_subscription_to_from_message_2982@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-11 11:38:14.730 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='ea1fa84b20e537eacd6d4aa362a9a8b7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:38:14.730 ***🔗
bOb_allow_subscription_to_from_message_2982@localhost/res1 in
<iq id='ea1fa84b20e537eacd6d4aa362a9a8b7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2982@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:38:14.730 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='b4348319f1f9f062e55e77785043e441'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:38:14.731 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='b4348319f1f9f062e55e77785043e441' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:38:14.731 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<presence/>
*** User 2024-03-11 11:38:14.732 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2982@localhost/res1' to='bob_allow_subscription_to_from_message_2982@localhost/res1'/>
*** User 2024-03-11 11:38:14.732 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='62e11e3db540af3f5947e6f66542def8'>
<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-11 11:38:14.735 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='push026fbaa90924ff99' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.735 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='62e11e3db540af3f5947e6f66542def8' type='result'/>
*** User 2024-03-11 11:38:14.735 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='get' id='edc57010bb759f548bc80c004aa7c46d'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.736 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='edc57010bb759f548bc80c004aa7c46d' 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-11 11:38:14.736 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='7b9471c76d243a6708bc8877001665d9'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.738 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='7b9471c76d243a6708bc8877001665d9' type='result'/>
*** User 2024-03-11 11:38:14.738 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='a5615ed67bf044c36a5da0c6fe10d8d2'>
<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-11 11:38:14.740 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='push405907532f086268' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.740 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='a5615ed67bf044c36a5da0c6fe10d8d2' type='result'/>
*** User 2024-03-11 11:38:14.740 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='get' id='37241fbc62abe995664fdccef0a1b96c'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.741 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='37241fbc62abe995664fdccef0a1b96c' 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-11 11:38:14.741 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<iq type='set' id='de16671f2b00b5b8d982b59566f31c73'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.743 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='de16671f2b00b5b8d982b59566f31c73' type='result'/>
*** User 2024-03-11 11:38:14.743 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2982@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.743 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2982@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.794 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2982@localhost/res1' to='alice_allow_subscription_to_from_message_2982@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-11 11:38:14.794 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2982@localhost/res1' to='bob_allow_subscription_to_from_message_2982@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-11 11:38:14.794 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2982@localhost'/>
*** User 2024-03-11 11:38:14.798 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='pusha4b0ee9916adb1eb' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_2982@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.798 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' type='subscribe'/>
*** User 2024-03-11 11:38:14.798 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2982@localhost'/>
*** User 2024-03-11 11:38:14.802 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2982@localhost' to='bob_allow_subscription_to_from_message_2982@localhost/res1' id='pushd76e2dc98c4d005c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_2982@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.802 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' id='push585d32a75bc6c806' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_2982@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:38:14.802 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2982@localhost' to='alice_allow_subscription_to_from_message_2982@localhost/res1' type='subscribed'/>
*** User 2024-03-11 11:38:14.803 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2982@localhost/res1' to='alice_allow_subscription_to_from_message_2982@localhost/res1'/>
*** User 2024-03-11 11:38:14.803 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2982@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.805 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2982@localhost/res1' to='alice_allow_subscription_to_from_message_2982@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.805 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2982@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.807 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2982@localhost/res1' to='bob_allow_subscription_to_from_message_2982@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-11 11:38:14.807 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:38:14.807 ***🔗
bob_allow_subscription_to_from_message_2982@localhost/res1 in
</stream:stream>
*** User 2024-03-11 11:38:14.807 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 out
</stream:stream>
*** User 2024-03-11 11:38:14.808 ***🔗
alice_allow_subscription_to_from_message_2982@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 11:38:14
=== successfully completed test case
=== === Returned value: ok