=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.72459.0>},
{escalus_no_stanzas_after_story,true},
{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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.privacy_SUITE.logs/run.2024-04-15_16.58.02/privacy_suite.allow_subscription_to_from_message.133635.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.privacy_SUITE.logs/run.2024-04-15_16.58.02/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_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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@8ba0dd56aa70.2024-04-15_16.45.39"
=== Started at 2024-04-15 16:58:04
*** User 2024-04-15 16:58:04.186 ***🔗
alicE_allow_subscription_to_from_message_2672@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-04-15 16:58:04.186 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a7d26095696a64cb' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:58:04.187 ***🔗
alicE_allow_subscription_to_from_message_2672@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-04-15 16:58:04.187 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjY3MgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-15 16:58:04.187 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:58:04.187 ***🔗
alicE_allow_subscription_to_from_message_2672@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-04-15 16:58:04.188 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0aadca0218c33931' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2672@localhost'>
*** User 2024-04-15 16:58:04.188 ***🔗
alicE_allow_subscription_to_from_message_2672@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-04-15 16:58:04.188 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='85505c8fd76f1dd64e29b102cf97ec79'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:58:04.188 ***🔗
alicE_allow_subscription_to_from_message_2672@localhost/res1 in
<iq id='85505c8fd76f1dd64e29b102cf97ec79' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2672@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:58:04.188 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='af6df1005352970620a638af7fb036c5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:58:04.189 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='af6df1005352970620a638af7fb036c5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:58:04.190 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<presence/>
*** User 2024-04-15 16:58:04.191 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2672@localhost/res1' to='alice_allow_subscription_to_from_message_2672@localhost/res1'/>
*** User 2024-04-15 16:58:04.191 ***🔗
bOb_allow_subscription_to_from_message_2672@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-04-15 16:58:04.192 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='783cab062a0e4196' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:58:04.192 ***🔗
bOb_allow_subscription_to_from_message_2672@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-04-15 16:58:04.192 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI2NzIAbWFrcm9saWth</auth>
*** User 2024-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@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-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e29a1b0e33e8ea7' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2672@localhost'>
*** User 2024-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@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-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='e85493f8808572341924d3bc779af398'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:58:04.193 ***🔗
bOb_allow_subscription_to_from_message_2672@localhost/res1 in
<iq id='e85493f8808572341924d3bc779af398' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2672@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:58:04.193 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='9314602f976c51706941489a55f4e205'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:58:04.194 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='9314602f976c51706941489a55f4e205' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:58:04.194 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<presence/>
*** User 2024-04-15 16:58:04.195 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2672@localhost/res1' to='bob_allow_subscription_to_from_message_2672@localhost/res1'/>
*** User 2024-04-15 16:58:04.196 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='77e9d11c6ccba93640ff9bb41810e183'>
<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-04-15 16:58:04.198 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='pushb8a11d471492f806' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.198 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='77e9d11c6ccba93640ff9bb41810e183' type='result'/>
*** User 2024-04-15 16:58:04.198 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='get' id='76c7b8c60369a7d17a9a5b446eb95f70'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.200 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='76c7b8c60369a7d17a9a5b446eb95f70' 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-04-15 16:58:04.200 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='a9aa6d90f07b077163303c98376ecf4a'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.201 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='a9aa6d90f07b077163303c98376ecf4a' type='result'/>
*** User 2024-04-15 16:58:04.201 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='e1a74fa766cc9e36dc2fb83e252ceddb'>
<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-04-15 16:58:04.203 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='push16a7ff5955eb5773' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.203 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='e1a74fa766cc9e36dc2fb83e252ceddb' type='result'/>
*** User 2024-04-15 16:58:04.203 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='get' id='0c2ccb16fb91ddd286129b226f7b1182'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.204 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='0c2ccb16fb91ddd286129b226f7b1182' 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-04-15 16:58:04.204 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<iq type='set' id='020082a53edd5ad4e516904d65ce07e2'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.206 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='020082a53edd5ad4e516904d65ce07e2' type='result'/>
*** User 2024-04-15 16:58:04.206 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2672@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.206 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2672@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.257 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2672@localhost/res1' to='alice_allow_subscription_to_from_message_2672@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-04-15 16:58:04.257 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2672@localhost/res1' to='bob_allow_subscription_to_from_message_2672@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-04-15 16:58:04.257 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2672@localhost'/>
*** User 2024-04-15 16:58:04.261 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='pushc9efd42455c11500' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_2672@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.261 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' type='subscribe'/>
*** User 2024-04-15 16:58:04.261 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2672@localhost'/>
*** User 2024-04-15 16:58:04.265 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2672@localhost' to='bob_allow_subscription_to_from_message_2672@localhost/res1' id='push6255e1c74ed3d35a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_2672@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.265 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' id='push28d9334ca0646ac4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_2672@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-15 16:58:04.265 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2672@localhost' to='alice_allow_subscription_to_from_message_2672@localhost/res1' type='subscribed'/>
*** User 2024-04-15 16:58:04.266 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2672@localhost/res1' to='alice_allow_subscription_to_from_message_2672@localhost/res1'/>
*** User 2024-04-15 16:58:04.266 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2672@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.267 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2672@localhost/res1' to='alice_allow_subscription_to_from_message_2672@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.268 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2672@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.269 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2672@localhost/res1' to='bob_allow_subscription_to_from_message_2672@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-15 16:58:04.269 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:58:04.269 ***🔗
bob_allow_subscription_to_from_message_2672@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:58:04.270 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:58:04.270 ***🔗
alice_allow_subscription_to_from_message_2672@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:58:04
=== successfully completed test case
=== === Returned value: ok