=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.75506.0>},
{escalus_no_stanzas_after_story,true},
{backend,rdbms},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.privacy_SUITE.logs/run.2023-11-17_15.22.54/privacy_suite.allow_subscription_to_from_message.199298.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.privacy_SUITE.logs/run.2023-11-17_15.22.54/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
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 => cets,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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:22:56
*** User 2023-11-17 15:22:56.041 ***🔗
alicE_allow_subscription_to_from_message_2645@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-11-17 15:22:56.041 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e61678ad27d023a' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:56.041 ***🔗
alicE_allow_subscription_to_from_message_2645@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-11-17 15:22:56.041 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjY0NQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-17 15:22:56.042 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:56.042 ***🔗
alicE_allow_subscription_to_from_message_2645@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-11-17 15:22:56.042 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bbb68777bf2b0993' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2645@localhost'>
*** User 2023-11-17 15:22:56.042 ***🔗
alicE_allow_subscription_to_from_message_2645@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-11-17 15:22:56.042 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='879afca71ca4960057635f4e6b4f9921'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:56.043 ***🔗
alicE_allow_subscription_to_from_message_2645@localhost/res1 in
<iq id='879afca71ca4960057635f4e6b4f9921' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2645@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:56.043 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='26341063ada14ff9ee3421c532135adf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:56.044 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='26341063ada14ff9ee3421c532135adf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:56.044 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<presence/>
*** User 2023-11-17 15:22:56.046 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2645@localhost/res1' to='alice_allow_subscription_to_from_message_2645@localhost/res1'/>
*** User 2023-11-17 15:22:56.046 ***🔗
bOb_allow_subscription_to_from_message_2645@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-11-17 15:22:56.046 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ef22a80c599c1ee' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:56.046 ***🔗
bOb_allow_subscription_to_from_message_2645@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-11-17 15:22:56.047 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI2NDUAbWFrcm9saWth</auth>
*** User 2023-11-17 15:22:56.047 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:56.047 ***🔗
bOb_allow_subscription_to_from_message_2645@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-11-17 15:22:56.048 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dc86e27882f63a30' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2645@localhost'>
*** User 2023-11-17 15:22:56.048 ***🔗
bOb_allow_subscription_to_from_message_2645@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-11-17 15:22:56.048 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='b998492deb37e9b403d03d22cd6a7c4a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:56.048 ***🔗
bOb_allow_subscription_to_from_message_2645@localhost/res1 in
<iq id='b998492deb37e9b403d03d22cd6a7c4a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2645@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:56.048 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='90ca54d1da84e95bf3e97221d7bf9dfa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:56.050 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='90ca54d1da84e95bf3e97221d7bf9dfa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:56.050 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<presence/>
*** User 2023-11-17 15:22:56.051 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2645@localhost/res1' to='bob_allow_subscription_to_from_message_2645@localhost/res1'/>
*** User 2023-11-17 15:22:56.051 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='b2340924312af71d9f88a75cc4af2f16'>
<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-11-17 15:22:56.054 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='pushe711d6976e8c08e5' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.054 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='b2340924312af71d9f88a75cc4af2f16' type='result'/>
*** User 2023-11-17 15:22:56.054 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='get' id='320e7bda2127f4f3ebb2e30627bc7e01'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.055 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='320e7bda2127f4f3ebb2e30627bc7e01' 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-11-17 15:22:56.055 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='ecb11ca59d12044dea69d6d996fb3d86'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.057 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='ecb11ca59d12044dea69d6d996fb3d86' type='result'/>
*** User 2023-11-17 15:22:56.057 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='4bc036badd069ba21c901767714c980b'>
<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-11-17 15:22:56.059 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='pushbcfdbbe5286bd395' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.059 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='4bc036badd069ba21c901767714c980b' type='result'/>
*** User 2023-11-17 15:22:56.059 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='get' id='012729eb1f585eec9d2fa9c6b3dd1b41'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.061 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='012729eb1f585eec9d2fa9c6b3dd1b41' 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-11-17 15:22:56.061 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<iq type='set' id='6fcc2449d8f29a18311f80f1453b49ce'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.063 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='6fcc2449d8f29a18311f80f1453b49ce' type='result'/>
*** User 2023-11-17 15:22:56.063 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2645@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.063 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2645@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.113 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2645@localhost/res1' to='alice_allow_subscription_to_from_message_2645@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-11-17 15:22:56.114 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2645@localhost/res1' to='bob_allow_subscription_to_from_message_2645@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-11-17 15:22:56.114 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2645@localhost'/>
*** User 2023-11-17 15:22:56.118 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='pushea76d54c3e5a6dc0' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2645@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.118 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' type='subscribe'/>
*** User 2023-11-17 15:22:56.118 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2645@localhost'/>
*** User 2023-11-17 15:22:56.123 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2645@localhost' to='bob_allow_subscription_to_from_message_2645@localhost/res1' id='push86a34a3b9dbba1cf' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2645@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.123 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' id='push0e82672a89712b18' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2645@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:22:56.123 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2645@localhost' to='alice_allow_subscription_to_from_message_2645@localhost/res1' type='subscribed'/>
*** User 2023-11-17 15:22:56.124 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2645@localhost/res1' to='alice_allow_subscription_to_from_message_2645@localhost/res1'/>
*** User 2023-11-17 15:22:56.124 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2645@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.126 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2645@localhost/res1' to='alice_allow_subscription_to_from_message_2645@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.126 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2645@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.128 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2645@localhost/res1' to='bob_allow_subscription_to_from_message_2645@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2023-11-17 15:22:56.128 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:22:56.128 ***🔗
bob_allow_subscription_to_from_message_2645@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:22:56.128 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:22:56.129 ***🔗
alice_allow_subscription_to_from_message_2645@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:22:56
=== successfully completed test case
=== === Returned value: ok