=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.76188.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.privacy_SUITE.logs/run.2024-03-08_09.16.06/privacy_suite.allow_subscription_to_from_message.196866.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.privacy_SUITE.logs/run.2024-03-08_09.16.06/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_sic => #{iqdisc => one_queue},
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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
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 => mnesia,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@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:16:07
*** User 2024-03-08 09:16:07.742 ***🔗
alicE_allow_subscription_to_from_message_2869@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-08 09:16:07.742 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee9f3876d0dcae3d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:16:07.742 ***🔗
alicE_allow_subscription_to_from_message_2869@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-08 09:16:07.742 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjg2OQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-08 09:16:07.743 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:16:07.743 ***🔗
alicE_allow_subscription_to_from_message_2869@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-08 09:16:07.744 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='909d06cb90183bf8' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2869@localhost'>
*** User 2024-03-08 09:16:07.744 ***🔗
alicE_allow_subscription_to_from_message_2869@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-08 09:16:07.744 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='8c0942e5664bd501191125e82ea1bf07'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:16:07.744 ***🔗
alicE_allow_subscription_to_from_message_2869@localhost/res1 in
<iq id='8c0942e5664bd501191125e82ea1bf07' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:16:07.744 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='6be20e08bfc486dac560cdecb25989bc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:07.746 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='6be20e08bfc486dac560cdecb25989bc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:07.746 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<presence/>
*** User 2024-03-08 09:16:07.747 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2869@localhost/res1' to='alice_allow_subscription_to_from_message_2869@localhost/res1'/>
*** User 2024-03-08 09:16:07.748 ***🔗
bOb_allow_subscription_to_from_message_2869@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-08 09:16:07.748 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5fde480b96f0013b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:16:07.749 ***🔗
bOb_allow_subscription_to_from_message_2869@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-08 09:16:07.749 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI4NjkAbWFrcm9saWth</auth>
*** User 2024-03-08 09:16:07.750 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:16:07.750 ***🔗
bOb_allow_subscription_to_from_message_2869@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-08 09:16:07.750 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe1976ced8a6617e' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2869@localhost'>
*** User 2024-03-08 09:16:07.750 ***🔗
bOb_allow_subscription_to_from_message_2869@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-08 09:16:07.750 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='3df1582bf5983be6ef75cb9fc422e9b8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:16:07.751 ***🔗
bOb_allow_subscription_to_from_message_2869@localhost/res1 in
<iq id='3df1582bf5983be6ef75cb9fc422e9b8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2869@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:16:07.751 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='961e4f578bcb9c87b91069aed83e9d0b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:07.752 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='961e4f578bcb9c87b91069aed83e9d0b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:07.752 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<presence/>
*** User 2024-03-08 09:16:07.755 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2869@localhost/res1' to='bob_allow_subscription_to_from_message_2869@localhost/res1'/>
*** User 2024-03-08 09:16:07.755 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='551e11ff2f3a8c8a5c37d1c62c5f701f'>
<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-08 09:16:07.759 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='push59268010a4324efe' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.759 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='551e11ff2f3a8c8a5c37d1c62c5f701f' type='result'/>
*** User 2024-03-08 09:16:07.759 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='get' id='2333b5979d4172f4749e68ef39ec7dc6'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.761 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='2333b5979d4172f4749e68ef39ec7dc6' 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-08 09:16:07.761 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='b2eb5fe7a924f89f5aaa213c7b8484b9'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.763 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='b2eb5fe7a924f89f5aaa213c7b8484b9' type='result'/>
*** User 2024-03-08 09:16:07.763 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='d52c1d010726989b10bd38e11d70204a'>
<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-08 09:16:07.768 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='pushdb79cd9896ceba65' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.768 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='d52c1d010726989b10bd38e11d70204a' type='result'/>
*** User 2024-03-08 09:16:07.768 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='get' id='432bdc5d2985cacd3c9eab592d931ba5'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.770 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='432bdc5d2985cacd3c9eab592d931ba5' 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-08 09:16:07.770 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<iq type='set' id='6c7a18e3659202d38dd97bad57055c2d'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.772 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='6c7a18e3659202d38dd97bad57055c2d' type='result'/>
*** User 2024-03-08 09:16:07.773 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2869@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.773 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2869@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.823 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2869@localhost/res1' to='alice_allow_subscription_to_from_message_2869@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-08 09:16:07.824 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2869@localhost/res1' to='bob_allow_subscription_to_from_message_2869@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-08 09:16:07.824 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2869@localhost'/>
*** User 2024-03-08 09:16:07.833 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='push889f7cbdf75e2d3c' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_2869@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.833 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' type='subscribe'/>
*** User 2024-03-08 09:16:07.833 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2869@localhost'/>
*** User 2024-03-08 09:16:07.841 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2869@localhost' to='bob_allow_subscription_to_from_message_2869@localhost/res1' id='pushb6ad9aac6741e50b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_2869@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.842 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' id='push28f15b4aacc77fc6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_2869@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:16:07.843 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2869@localhost' to='alice_allow_subscription_to_from_message_2869@localhost/res1' type='subscribed'/>
*** User 2024-03-08 09:16:07.844 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2869@localhost/res1' to='alice_allow_subscription_to_from_message_2869@localhost/res1'/>
*** User 2024-03-08 09:16:07.844 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2869@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.848 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2869@localhost/res1' to='alice_allow_subscription_to_from_message_2869@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.848 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2869@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.852 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2869@localhost/res1' to='bob_allow_subscription_to_from_message_2869@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-03-08 09:16:07.852 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:16:07.852 ***🔗
bob_allow_subscription_to_from_message_2869@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:16:07.852 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:16:07.854 ***🔗
alice_allow_subscription_to_from_message_2869@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 09:16:07
=== successfully completed test case
=== === Returned value: ok