=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.15640.1>},
{escalus_no_stanzas_after_story,true},
{backend,riak},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.privacy_SUITE.logs/run.2022-06-22_08.55.28/privacy_suite.allow_subscription_to_from_message.19589.html"},
{tc_group_properties,[{name,allowing},{repeat_until_all_ok,3},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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.privacy_SUITE.logs/run.2022-06-22_08.55.28/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_commands => #{},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => #{},mod_muc_light_commands => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
store_current_id => false,versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"
=== Started at 2022-06-22 08:55:30
*** User 2022-06-22 08:55:30.301 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 08:55:30.301 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eabea2ecac80efef' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:30.301 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 08:55:30.301 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTQxNQBtYXR5Z3J5c2E=</auth>
*** User 2022-06-22 08:55:30.303 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:55:30.303 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 08:55:30.303 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de80888a761e6564' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:30.303 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 08:55:30.304 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='79377329bed2a44cc89f61d087e84f2b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:55:30.304 ***🔗
alicE_allow_subscription_to_from_message_1415@localhost/res1 in
<iq id='79377329bed2a44cc89f61d087e84f2b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_1415@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:55:30.304 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='89af6dac8c7c553888528dcd159ac636'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:30.304 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq type='result' id='89af6dac8c7c553888528dcd159ac636'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:30.304 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<presence/>
*** User 2022-06-22 08:55:30.306 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1415@localhost/res1' to='alice_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:30.307 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 08:55:30.307 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f51e8cd9cbe9a6e5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:30.307 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 08:55:30.308 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE0MTUAbWFrcm9saWth</auth>
*** User 2022-06-22 08:55:30.309 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:55:30.309 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 08:55:30.310 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a451efa429e51a3c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:30.310 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-06-22 08:55:30.310 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='2d14053a8fa5f06d67e38728b3996dd7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:55:30.310 ***🔗
bOb_allow_subscription_to_from_message_1415@localhost/res1 in
<iq id='2d14053a8fa5f06d67e38728b3996dd7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_1415@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:55:30.310 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='35231f6967728af9773a9839949d0b1d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:30.310 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq type='result' id='35231f6967728af9773a9839949d0b1d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:30.310 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<presence/>
*** User 2022-06-22 08:55:30.312 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1415@localhost/res1' to='bob_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:30.313 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='ad886cade0df3390e71587b50d580089'>
<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 2022-06-22 08:55:30.315 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='push8a401ba32dba20b5' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.315 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='ad886cade0df3390e71587b50d580089' type='result'/>
*** User 2022-06-22 08:55:30.315 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='get' id='a86c6cc602a0cf1c13cb2e5f3beb31b6'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.317 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='a86c6cc602a0cf1c13cb2e5f3beb31b6' 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 2022-06-22 08:55:30.317 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='1ea888161663af39b8caf2bd780b301f'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.356 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='1ea888161663af39b8caf2bd780b301f' type='result'/>
*** User 2022-06-22 08:55:30.356 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='ebf9f925a2f315abc56c0ab2515dc205'>
<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 2022-06-22 08:55:30.359 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' id='push50f152ad9682c229' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.359 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' id='ebf9f925a2f315abc56c0ab2515dc205' type='result'/>
*** User 2022-06-22 08:55:30.359 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='get' id='824349c56189829d21a9503e9f88c3a4'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.361 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' id='824349c56189829d21a9503e9f88c3a4' 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 2022-06-22 08:55:30.361 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<iq type='set' id='bfabc64b5a169e85070a19ce47cd0f67'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.363 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' id='bfabc64b5a169e85070a19ce47cd0f67' type='result'/>
*** User 2022-06-22 08:55:30.364 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_1415@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.364 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_1415@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.414 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1415@localhost/res1' to='alice_allow_subscription_to_from_message_1415@localhost/res1' type='error' xml:lang='en'>
<body>Hi, Bob XYZ!</body>
<error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>
*** User 2022-06-22 08:55:30.414 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1415@localhost/res1' to='bob_allow_subscription_to_from_message_1415@localhost/res1' type='error' xml:lang='en'>
<body>Hi, Alice XYZ!</body>
<error code='503' type='cancel'>
<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</message>
*** User 2022-06-22 08:55:30.415 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_1415@localhost'/>
*** User 2022-06-22 08:55:30.465 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='push9224475f304301e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1415@localhost'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.465 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-06-22 08:55:30.465 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_1415@localhost'/>
*** User 2022-06-22 08:55:30.475 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1415@localhost' to='bob_allow_subscription_to_from_message_1415@localhost/res1' id='push5f990c095b729820' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1415@localhost'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.475 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' id='pusha411fc93a825e4f7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1415@localhost'/>
</query>
</iq>
*** User 2022-06-22 08:55:30.475 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1415@localhost' to='alice_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-06-22 08:55:30.556 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1415@localhost/res1' to='alice_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:30.556 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_1415@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.561 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1415@localhost/res1' to='alice_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.562 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_1415@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.567 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1415@localhost/res1' to='bob_allow_subscription_to_from_message_1415@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 08:55:30.567 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:55:30.568 ***🔗
bob_allow_subscription_to_from_message_1415@localhost/res1 in
</stream:stream>
*** User 2022-06-22 08:55:30.568 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:55:30.568 ***🔗
alice_allow_subscription_to_from_message_1415@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 08:55:30
=== successfully completed test case
=== === Returned value: ok