=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.78138.0>},
{escalus_no_stanzas_after_story,true},
{preset,"odbc_mssql_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@88a6ddd152da.2024-02-27_11.16.04/big_tests.tests.privacy_SUITE.logs/run.2024-02-27_11.31.07/privacy_suite.allow_subscription_to_from_message.215298.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@88a6ddd152da.2024-02-27_11.16.04/big_tests.tests.privacy_SUITE.logs/run.2024-02-27_11.31.07/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 => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@88a6ddd152da.2024-02-27_11.16.04"
=== Started at 2024-02-27 11:31:08
*** User 2024-02-27 11:31:08.337 ***🔗
alicE_allow_subscription_to_from_message_2989@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-02-27 11:31:08.338 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b01b6d1b4391c877' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-27 11:31:08.338 ***🔗
alicE_allow_subscription_to_from_message_2989@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-02-27 11:31:08.338 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjk4OQBtYXR5Z3J5c2E=</auth>
*** User 2024-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@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-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2af0d64d3d350ceb' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2989@localhost'>
*** User 2024-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@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-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='0cd804713c6fb4ba06ad9962f47e54ea'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-27 11:31:08.339 ***🔗
alicE_allow_subscription_to_from_message_2989@localhost/res1 in
<iq id='0cd804713c6fb4ba06ad9962f47e54ea' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2989@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-27 11:31:08.339 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='bd235cf66ef047854961c2290b8a3f36'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 11:31:08.341 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='bd235cf66ef047854961c2290b8a3f36' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 11:31:08.341 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<presence/>
*** User 2024-02-27 11:31:08.342 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2989@localhost/res1' to='alice_allow_subscription_to_from_message_2989@localhost/res1'/>
*** User 2024-02-27 11:31:08.343 ***🔗
bOb_allow_subscription_to_from_message_2989@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-02-27 11:31:08.343 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75e7cb28e2de8408' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-27 11:31:08.343 ***🔗
bOb_allow_subscription_to_from_message_2989@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-02-27 11:31:08.343 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI5ODkAbWFrcm9saWth</auth>
*** User 2024-02-27 11:31:08.344 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 11:31:08.344 ***🔗
bOb_allow_subscription_to_from_message_2989@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-02-27 11:31:08.344 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54dd9535190a6874' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2989@localhost'>
*** User 2024-02-27 11:31:08.344 ***🔗
bOb_allow_subscription_to_from_message_2989@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-02-27 11:31:08.344 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='6d5210d2781f98ea92ac41f77ba0572a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-27 11:31:08.345 ***🔗
bOb_allow_subscription_to_from_message_2989@localhost/res1 in
<iq id='6d5210d2781f98ea92ac41f77ba0572a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2989@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-27 11:31:08.345 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='ed5928f0e868c792947b5ec2a3959c2c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 11:31:08.346 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='ed5928f0e868c792947b5ec2a3959c2c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 11:31:08.346 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<presence/>
*** User 2024-02-27 11:31:08.347 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2989@localhost/res1' to='bob_allow_subscription_to_from_message_2989@localhost/res1'/>
*** User 2024-02-27 11:31:08.347 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='ebba27bec160913bcc29a2661dfd81ac'>
<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-02-27 11:31:08.350 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='push2653241031ffaadf' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.351 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='ebba27bec160913bcc29a2661dfd81ac' type='result'/>
*** User 2024-02-27 11:31:08.351 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='get' id='98aeeebbf855bdf968350ce48964888f'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.352 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='98aeeebbf855bdf968350ce48964888f' 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-02-27 11:31:08.352 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='960a009fe1ea03553e85f4ca3a976130'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.354 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='960a009fe1ea03553e85f4ca3a976130' type='result'/>
*** User 2024-02-27 11:31:08.354 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='e38c0224489895a7fa22eccc25f21cbf'>
<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-02-27 11:31:08.357 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='pushc4f6e8fab7feb66c' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.357 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='e38c0224489895a7fa22eccc25f21cbf' type='result'/>
*** User 2024-02-27 11:31:08.357 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='get' id='500c66a0024f5f2e393454a75fc8baa6'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.359 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='500c66a0024f5f2e393454a75fc8baa6' 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-02-27 11:31:08.359 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<iq type='set' id='a4cea20784064ccc5f97ba2142ea3908'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.361 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='a4cea20784064ccc5f97ba2142ea3908' type='result'/>
*** User 2024-02-27 11:31:08.361 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2989@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.361 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2989@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.412 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2989@localhost/res1' to='alice_allow_subscription_to_from_message_2989@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-02-27 11:31:08.412 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2989@localhost/res1' to='bob_allow_subscription_to_from_message_2989@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-02-27 11:31:08.412 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2989@localhost'/>
*** User 2024-02-27 11:31:08.418 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='push250f57b189e04b87' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2989@localhost'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.418 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' type='subscribe'/>
*** User 2024-02-27 11:31:08.418 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2989@localhost'/>
*** User 2024-02-27 11:31:08.424 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2989@localhost' to='bob_allow_subscription_to_from_message_2989@localhost/res1' id='pushf4a6ed0538399081' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2989@localhost'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.424 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' id='push7f17fa1f907eb37a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2989@localhost'/>
</query>
</iq>
*** User 2024-02-27 11:31:08.425 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2989@localhost' to='alice_allow_subscription_to_from_message_2989@localhost/res1' type='subscribed'/>
*** User 2024-02-27 11:31:08.426 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2989@localhost/res1' to='alice_allow_subscription_to_from_message_2989@localhost/res1'/>
*** User 2024-02-27 11:31:08.426 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2989@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.429 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2989@localhost/res1' to='alice_allow_subscription_to_from_message_2989@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.429 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2989@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.431 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2989@localhost/res1' to='bob_allow_subscription_to_from_message_2989@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 11:31:08.432 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 out
</stream:stream>
*** User 2024-02-27 11:31:08.432 ***🔗
bob_allow_subscription_to_from_message_2989@localhost/res1 in
</stream:stream>
*** User 2024-02-27 11:31:08.432 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 out
</stream:stream>
*** User 2024-02-27 11:31:08.434 ***🔗
alice_allow_subscription_to_from_message_2989@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-27 11:31:08
=== successfully completed test case
=== === Returned value: ok