=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.79206.0>},
{escalus_no_stanzas_after_story,true},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a91c848225da.2024-04-24_13.09.45/big_tests.tests.privacy_SUITE.logs/run.2024-04-24_13.23.42/privacy_suite.allow_subscription_to_from_message.104964.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.privacy_SUITE.logs/run.2024-04-24_13.23.42/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,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,
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_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},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a91c848225da.2024-04-24_13.09.45"
=== Started at 2024-04-24 13:23:43
*** User 2024-04-24 13:23:43.672 ***🔗
alicE_allow_subscription_to_from_message_2929@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-24 13:23:43.672 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2249297e7e2a6306' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:43.672 ***🔗
alicE_allow_subscription_to_from_message_2929@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-24 13:23:43.672 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjkyOQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-24 13:23:43.673 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:43.673 ***🔗
alicE_allow_subscription_to_from_message_2929@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-24 13:23:43.674 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30100c9251c042ce' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2929@localhost'>
*** User 2024-04-24 13:23:43.674 ***🔗
alicE_allow_subscription_to_from_message_2929@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-24 13:23:43.674 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='4bf05fa5c729259c6c2586e586a32223'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:43.674 ***🔗
alicE_allow_subscription_to_from_message_2929@localhost/res1 in
<iq id='4bf05fa5c729259c6c2586e586a32223' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2929@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:43.674 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='978c9422995fe3753209c33a7e986685'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:43.676 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='978c9422995fe3753209c33a7e986685' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:43.676 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:43.678 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2929@localhost/res1' to='alice_allow_subscription_to_from_message_2929@localhost/res1'/>
*** User 2024-04-24 13:23:43.679 ***🔗
bOb_allow_subscription_to_from_message_2929@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-24 13:23:43.679 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4055b4ca6749514' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:43.679 ***🔗
bOb_allow_subscription_to_from_message_2929@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-24 13:23:43.679 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI5MjkAbWFrcm9saWth</auth>
*** User 2024-04-24 13:23:43.680 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:43.680 ***🔗
bOb_allow_subscription_to_from_message_2929@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-24 13:23:43.680 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb3adef01bcef669' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2929@localhost'>
*** User 2024-04-24 13:23:43.680 ***🔗
bOb_allow_subscription_to_from_message_2929@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-24 13:23:43.681 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='d5ebfc916d1575671c97a9362becf72e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:43.681 ***🔗
bOb_allow_subscription_to_from_message_2929@localhost/res1 in
<iq id='d5ebfc916d1575671c97a9362becf72e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2929@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:43.681 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='6822604dab0d6fc31d97e9741b31a07d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:43.683 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='6822604dab0d6fc31d97e9741b31a07d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:43.683 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:43.685 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2929@localhost/res1' to='bob_allow_subscription_to_from_message_2929@localhost/res1'/>
*** User 2024-04-24 13:23:43.685 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='8bb69b3a69712fb577a4fb78c44cf83b'>
<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-24 13:23:43.689 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='push863efdc1d1eee5db' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.689 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='8bb69b3a69712fb577a4fb78c44cf83b' type='result'/>
*** User 2024-04-24 13:23:43.689 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='get' id='c90b0fbf429b2da8577480d0a6dccee4'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.690 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='c90b0fbf429b2da8577480d0a6dccee4' 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-24 13:23:43.690 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='3dc2c0503eed86948c6816331d4e76ab'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.693 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='3dc2c0503eed86948c6816331d4e76ab' type='result'/>
*** User 2024-04-24 13:23:43.693 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='e4aabb24a072bbcb1e11662b3db2f175'>
<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-24 13:23:43.696 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='push564471abf2eae5e3' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.696 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='e4aabb24a072bbcb1e11662b3db2f175' type='result'/>
*** User 2024-04-24 13:23:43.696 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='get' id='2d8eb1629e54d1252d37c4ff45509616'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.698 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='2d8eb1629e54d1252d37c4ff45509616' 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-24 13:23:43.698 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<iq type='set' id='0365ddcec9ca520489b337e90db31847'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.700 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='0365ddcec9ca520489b337e90db31847' type='result'/>
*** User 2024-04-24 13:23:43.700 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2929@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.700 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2929@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.751 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2929@localhost/res1' to='alice_allow_subscription_to_from_message_2929@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-24 13:23:43.751 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2929@localhost/res1' to='bob_allow_subscription_to_from_message_2929@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-24 13:23:43.752 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2929@localhost'/>
*** User 2024-04-24 13:23:43.758 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='pushdd58b71cbbf5925e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_2929@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.759 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' type='subscribe'/>
*** User 2024-04-24 13:23:43.759 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2929@localhost'/>
*** User 2024-04-24 13:23:43.766 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2929@localhost' to='bob_allow_subscription_to_from_message_2929@localhost/res1' id='push03596d51ed065bdd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_2929@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.766 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' id='push47dd994dca17b678' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_2929@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-24 13:23:43.767 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2929@localhost' to='alice_allow_subscription_to_from_message_2929@localhost/res1' type='subscribed'/>
*** User 2024-04-24 13:23:43.768 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2929@localhost/res1' to='alice_allow_subscription_to_from_message_2929@localhost/res1'/>
*** User 2024-04-24 13:23:43.768 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2929@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.771 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2929@localhost/res1' to='alice_allow_subscription_to_from_message_2929@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.771 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2929@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.774 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2929@localhost/res1' to='bob_allow_subscription_to_from_message_2929@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-24 13:23:43.774 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:43.774 ***🔗
bob_allow_subscription_to_from_message_2929@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:23:43.774 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:43.775 ***🔗
alice_allow_subscription_to_from_message_2929@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-24 13:23:43
=== successfully completed test case
=== === Returned value: ok