=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.47443.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@2cc1cb2b4b9c.2024-02-27_12.00.42/big_tests.tests.privacy_SUITE.logs/run.2024-02-27_12.13.16/privacy_suite.allow_subscription_to_from_message.88962.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@2cc1cb2b4b9c.2024-02-27_12.00.42/big_tests.tests.privacy_SUITE.logs/run.2024-02-27_12.13.16/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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_carboncopy => #{iqdisc => no_queue},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
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@2cc1cb2b4b9c.2024-02-27_12.00.42"
=== Started at 2024-02-27 12:13:17
*** User 2024-02-27 12:13:17.778 ***🔗
alicE_allow_subscription_to_from_message_1543@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 12:13:17.779 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21c9bf22dfbc0c9c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-27 12:13:17.779 ***🔗
alicE_allow_subscription_to_from_message_1543@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 12:13:17.779 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTU0MwBtYXR5Z3J5c2E=</auth>
*** User 2024-02-27 12:13:17.779 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 12:13:17.779 ***🔗
alicE_allow_subscription_to_from_message_1543@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 12:13:17.780 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dde519d47b84bfe9' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_1543@localhost'>
*** User 2024-02-27 12:13:17.780 ***🔗
alicE_allow_subscription_to_from_message_1543@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 12:13:17.780 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='481b55a07c28e8038e888efe9cc0c15b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-27 12:13:17.780 ***🔗
alicE_allow_subscription_to_from_message_1543@localhost/res1 in
<iq id='481b55a07c28e8038e888efe9cc0c15b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_1543@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-27 12:13:17.780 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='586e2da19e40db20ee4333ccb37cf620'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 12:13:17.781 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='586e2da19e40db20ee4333ccb37cf620' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 12:13:17.781 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<presence/>
*** User 2024-02-27 12:13:17.781 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1543@localhost/res1' to='alice_allow_subscription_to_from_message_1543@localhost/res1'/>
*** User 2024-02-27 12:13:17.782 ***🔗
bOb_allow_subscription_to_from_message_1543@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 12:13:17.782 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d971b901d7a380ec' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-27 12:13:17.782 ***🔗
bOb_allow_subscription_to_from_message_1543@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 12:13:17.782 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE1NDMAbWFrcm9saWth</auth>
*** User 2024-02-27 12:13:17.783 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-27 12:13:17.783 ***🔗
bOb_allow_subscription_to_from_message_1543@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 12:13:17.783 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b7938b9adbc768f' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_1543@localhost'>
*** User 2024-02-27 12:13:17.783 ***🔗
bOb_allow_subscription_to_from_message_1543@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 12:13:17.784 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='153a79c72f9cafc73acd3676ca2c46a2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-27 12:13:17.784 ***🔗
bOb_allow_subscription_to_from_message_1543@localhost/res1 in
<iq id='153a79c72f9cafc73acd3676ca2c46a2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_1543@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-27 12:13:17.784 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='0a10372031fd834e7f6fef74f9d79f46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 12:13:17.784 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='0a10372031fd834e7f6fef74f9d79f46' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-27 12:13:17.784 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<presence/>
*** User 2024-02-27 12:13:17.785 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1543@localhost/res1' to='bob_allow_subscription_to_from_message_1543@localhost/res1'/>
*** User 2024-02-27 12:13:17.785 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='3669fc6dc880809f3a12120f312afbc6'>
<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 12:13:17.786 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='push40b4f65717446aac' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.786 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='3669fc6dc880809f3a12120f312afbc6' type='result'/>
*** User 2024-02-27 12:13:17.786 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='get' id='a97d3e966963f1f35729568bc38e8d1d'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.786 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='a97d3e966963f1f35729568bc38e8d1d' 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 12:13:17.786 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='ce462efa17b501b8f2b5f40546bcbb50'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.787 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='ce462efa17b501b8f2b5f40546bcbb50' type='result'/>
*** User 2024-02-27 12:13:17.787 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='6fcda3bf36d5054659e6aed282495f05'>
<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 12:13:17.787 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='push0cc43faf2717873a' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.787 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='6fcda3bf36d5054659e6aed282495f05' type='result'/>
*** User 2024-02-27 12:13:17.788 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='get' id='d391f0b0a0eed2e1c29087c90a6497f8'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.788 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='d391f0b0a0eed2e1c29087c90a6497f8' 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 12:13:17.788 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<iq type='set' id='b7e4e97c363ae4420b11071a5b2fce3a'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.788 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='b7e4e97c363ae4420b11071a5b2fce3a' type='result'/>
*** User 2024-02-27 12:13:17.789 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_1543@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.789 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_1543@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.839 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1543@localhost/res1' to='alice_allow_subscription_to_from_message_1543@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 12:13:17.839 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1543@localhost/res1' to='bob_allow_subscription_to_from_message_1543@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 12:13:17.839 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_1543@localhost'/>
*** User 2024-02-27 12:13:17.841 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='push2d74a1433e51a68b' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1543@localhost'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.841 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' type='subscribe'/>
*** User 2024-02-27 12:13:17.841 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_1543@localhost'/>
*** User 2024-02-27 12:13:17.842 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1543@localhost' to='bob_allow_subscription_to_from_message_1543@localhost/res1' id='pushe6f90d2f205e0971' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1543@localhost'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.842 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' id='pushfecc93176e5f904a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1543@localhost'/>
</query>
</iq>
*** User 2024-02-27 12:13:17.842 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1543@localhost' to='alice_allow_subscription_to_from_message_1543@localhost/res1' type='subscribed'/>
*** User 2024-02-27 12:13:17.842 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1543@localhost/res1' to='alice_allow_subscription_to_from_message_1543@localhost/res1'/>
*** User 2024-02-27 12:13:17.842 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_1543@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.842 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1543@localhost/res1' to='alice_allow_subscription_to_from_message_1543@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.842 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_1543@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.843 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1543@localhost/res1' to='bob_allow_subscription_to_from_message_1543@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-02-27 12:13:17.843 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 out
</stream:stream>
*** User 2024-02-27 12:13:17.843 ***🔗
bob_allow_subscription_to_from_message_1543@localhost/res1 in
</stream:stream>
*** User 2024-02-27 12:13:17.843 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 out
</stream:stream>
*** User 2024-02-27 12:13:17.844 ***🔗
alice_allow_subscription_to_from_message_1543@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-27 12:13:17
=== successfully completed test case
=== === Returned value: ok