=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.47601.0>},
{escalus_no_stanzas_after_story,true},
{preset,"internal_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@9d1ddff7d112.2024-04-16_10.55.26/big_tests.tests.privacy_SUITE.logs/run.2024-04-16_11.09.02/privacy_suite.allow_subscription_to_from_message.69379.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@9d1ddff7d112.2024-04-16_10.55.26/big_tests.tests.privacy_SUITE.logs/run.2024-04-16_11.09.02/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => mnesia,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,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 =>
#{users_can_see_hidden_services => false,iqdisc => one_queue,
server_info => [],extra_domains => []},
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@9d1ddff7d112.2024-04-16_10.55.26"
=== Started at 2024-04-16 11:09:03
*** User 2024-04-16 11:09:03.491 ***🔗
alicE_allow_subscription_to_from_message_1611@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-16 11:09:03.491 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ba31f03a995d9980' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:09:03.492 ***🔗
alicE_allow_subscription_to_from_message_1611@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-16 11:09:03.492 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTYxMQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 11:09:03.492 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:09:03.492 ***🔗
alicE_allow_subscription_to_from_message_1611@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-16 11:09:03.493 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11df148450c0c932' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_1611@localhost'>
*** User 2024-04-16 11:09:03.493 ***🔗
alicE_allow_subscription_to_from_message_1611@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-16 11:09:03.493 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='cccd7f57c998be5fe495e9b950fee781'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:09:03.493 ***🔗
alicE_allow_subscription_to_from_message_1611@localhost/res1 in
<iq id='cccd7f57c998be5fe495e9b950fee781' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_1611@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:09:03.493 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='e133a2f77d924e7fca064ac092466d3c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:09:03.494 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='e133a2f77d924e7fca064ac092466d3c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:09:03.494 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<presence/>
*** User 2024-04-16 11:09:03.495 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1611@localhost/res1' to='alice_allow_subscription_to_from_message_1611@localhost/res1'/>
*** User 2024-04-16 11:09:03.495 ***🔗
bOb_allow_subscription_to_from_message_1611@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-16 11:09:03.496 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86ef73a7e6e10ce1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:09:03.496 ***🔗
bOb_allow_subscription_to_from_message_1611@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-16 11:09:03.496 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE2MTEAbWFrcm9saWth</auth>
*** User 2024-04-16 11:09:03.496 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:09:03.496 ***🔗
bOb_allow_subscription_to_from_message_1611@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-16 11:09:03.497 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a4847b29d427679d' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_1611@localhost'>
*** User 2024-04-16 11:09:03.497 ***🔗
bOb_allow_subscription_to_from_message_1611@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-16 11:09:03.497 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='b8c2ba10ea38ad2675ee0d198c166983'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:09:03.497 ***🔗
bOb_allow_subscription_to_from_message_1611@localhost/res1 in
<iq id='b8c2ba10ea38ad2675ee0d198c166983' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_1611@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:09:03.497 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='833e9fb30976f74bf21267faa05eb767'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:09:03.497 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='833e9fb30976f74bf21267faa05eb767' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:09:03.498 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<presence/>
*** User 2024-04-16 11:09:03.498 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1611@localhost/res1' to='bob_allow_subscription_to_from_message_1611@localhost/res1'/>
*** User 2024-04-16 11:09:03.498 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='a72a585695ebbc983dbe1b29262db2a3'>
<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-16 11:09:03.499 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='push9d2c7ed5dae42d87' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.499 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='a72a585695ebbc983dbe1b29262db2a3' type='result'/>
*** User 2024-04-16 11:09:03.499 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='get' id='cd0ad2e3dd7b4f1273e33f3fcecec602'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.499 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='cd0ad2e3dd7b4f1273e33f3fcecec602' 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-16 11:09:03.500 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='1f249e65c6ada6abfe4be22b0cff7689'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.500 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='1f249e65c6ada6abfe4be22b0cff7689' type='result'/>
*** User 2024-04-16 11:09:03.500 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='e3c5ade349b063f47ad8bc7a9160ddab'>
<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-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='push6bfc8ef790d402f1' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='e3c5ade349b063f47ad8bc7a9160ddab' type='result'/>
*** User 2024-04-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='get' id='a8dd708793b372e2cf96ad79cb7d9072'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='a8dd708793b372e2cf96ad79cb7d9072' 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-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<iq type='set' id='0656def25acd61d9cc477631d25cc195'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='0656def25acd61d9cc477631d25cc195' type='result'/>
*** User 2024-04-16 11:09:03.501 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_1611@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.502 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_1611@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.552 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1611@localhost/res1' to='alice_allow_subscription_to_from_message_1611@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-16 11:09:03.552 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1611@localhost/res1' to='bob_allow_subscription_to_from_message_1611@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-16 11:09:03.552 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_1611@localhost'/>
*** User 2024-04-16 11:09:03.554 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='pushc42bc95879f6ac43' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_1611@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.554 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' type='subscribe'/>
*** User 2024-04-16 11:09:03.554 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_1611@localhost'/>
*** User 2024-04-16 11:09:03.555 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1611@localhost' to='bob_allow_subscription_to_from_message_1611@localhost/res1' id='push58609863457f3399' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_1611@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.555 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' id='push51594d4ffe2779aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_1611@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 11:09:03.555 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1611@localhost' to='alice_allow_subscription_to_from_message_1611@localhost/res1' type='subscribed'/>
*** User 2024-04-16 11:09:03.555 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1611@localhost/res1' to='alice_allow_subscription_to_from_message_1611@localhost/res1'/>
*** User 2024-04-16 11:09:03.555 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_1611@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.556 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1611@localhost/res1' to='alice_allow_subscription_to_from_message_1611@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.556 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_1611@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.557 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1611@localhost/res1' to='bob_allow_subscription_to_from_message_1611@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 11:09:03.557 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:09:03.557 ***🔗
bob_allow_subscription_to_from_message_1611@localhost/res1 in
</stream:stream>
*** User 2024-04-16 11:09:03.557 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:09:03.557 ***🔗
alice_allow_subscription_to_from_message_1611@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 11:09:03
=== successfully completed test case
=== === Returned value: ok