=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.17424.1>},
{escalus_no_stanzas_after_story,true},
{backend,mnesia},
{mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.privacy_SUITE.logs/run.2022-06-22_09.27.22/privacy_suite.allow_subscription_to_from_message.20997.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@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.privacy_SUITE.logs/run.2022-06-22_09.27.22/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 => mnesia,iqdisc => one_queue,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 => mnesia,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07"
=== Started at 2022-06-22 09:27:23
*** User 2022-06-22 09:27:23.273 ***🔗
alicE_allow_subscription_to_from_message_1410@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 09:27:23.275 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a54cc451e23864c1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:23.275 ***🔗
alicE_allow_subscription_to_from_message_1410@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 09:27:23.275 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMTQxMABtYXR5Z3J5c2E=</auth>
*** User 2022-06-22 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@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 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1e088ac3cfa15ae' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@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 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='0074806941004594377ac8674cc18460'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:27:23.276 ***🔗
alicE_allow_subscription_to_from_message_1410@localhost/res1 in
<iq id='0074806941004594377ac8674cc18460' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_1410@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:27:23.276 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='440df5138216baec77d231a17741cc0d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:23.277 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq type='result' id='440df5138216baec77d231a17741cc0d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:23.277 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<presence/>
*** User 2022-06-22 09:27:23.277 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1410@localhost/res1' to='alice_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:23.278 ***🔗
bOb_allow_subscription_to_from_message_1410@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 09:27:23.278 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb878819ce3be1f2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:23.278 ***🔗
bOb_allow_subscription_to_from_message_1410@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 09:27:23.279 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzE0MTAAbWFrcm9saWth</auth>
*** User 2022-06-22 09:27:23.279 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:27:23.279 ***🔗
bOb_allow_subscription_to_from_message_1410@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 09:27:23.279 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9c2383f9c6ac17a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:23.280 ***🔗
bOb_allow_subscription_to_from_message_1410@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 09:27:23.280 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='f6cb5d986fbf853956d6d07934982c72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:27:23.280 ***🔗
bOb_allow_subscription_to_from_message_1410@localhost/res1 in
<iq id='f6cb5d986fbf853956d6d07934982c72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_1410@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:27:23.280 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='5d4a6cc22b40686067f33f487e82fe8e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:23.280 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq type='result' id='5d4a6cc22b40686067f33f487e82fe8e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:23.280 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<presence/>
*** User 2022-06-22 09:27:23.281 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1410@localhost/res1' to='bob_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:23.281 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='cdab7fab6b423a10ff97081a61e5f0d2'>
<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 09:27:23.281 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='push6403651dd19173e4' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.282 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='cdab7fab6b423a10ff97081a61e5f0d2' type='result'/>
*** User 2022-06-22 09:27:23.282 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='get' id='a42526c7405c3e73e997244e5e8121de'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.282 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='a42526c7405c3e73e997244e5e8121de' 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 09:27:23.282 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='a6d1bd24bff78072fbed14049bf42aae'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.282 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='a6d1bd24bff78072fbed14049bf42aae' type='result'/>
*** User 2022-06-22 09:27:23.282 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='5fab3d5ac6e66fd45b681dd16ad4b7fd'>
<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 09:27:23.283 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' id='push5acecafdf1ea1fef' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.283 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' id='5fab3d5ac6e66fd45b681dd16ad4b7fd' type='result'/>
*** User 2022-06-22 09:27:23.283 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='get' id='e2e282d8fec772305ba5ac229b1c48f9'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.284 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' id='e2e282d8fec772305ba5ac229b1c48f9' 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 09:27:23.284 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<iq type='set' id='749472b9cb3c846ecf7bb7db07278d1e'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.284 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' id='749472b9cb3c846ecf7bb7db07278d1e' type='result'/>
*** User 2022-06-22 09:27:23.284 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_1410@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.284 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_1410@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.335 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1410@localhost/res1' to='alice_allow_subscription_to_from_message_1410@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 09:27:23.335 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1410@localhost/res1' to='bob_allow_subscription_to_from_message_1410@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 09:27:23.335 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_1410@localhost'/>
*** User 2022-06-22 09:27:23.337 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='push149121d252c09123' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_allow_subscription_to_from_message_1410@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.337 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-06-22 09:27:23.337 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_1410@localhost'/>
*** User 2022-06-22 09:27:23.339 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_1410@localhost' to='bob_allow_subscription_to_from_message_1410@localhost/res1' id='pushffc25ada8d944145' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_allow_subscription_to_from_message_1410@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.339 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' id='push74d78fc744281e61' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_allow_subscription_to_from_message_1410@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:27:23.339 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1410@localhost' to='alice_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-06-22 09:27:23.339 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_1410@localhost/res1' to='alice_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:23.339 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
<message to='alice_allow_subscription_to_from_message_1410@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.339 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_1410@localhost/res1' to='alice_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.340 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
<message to='bob_allow_subscription_to_from_message_1410@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.340 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_1410@localhost/res1' to='bob_allow_subscription_to_from_message_1410@localhost/res1' xml:lang='en' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2022-06-22 09:27:23.340 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:27:23.341 ***🔗
bob_allow_subscription_to_from_message_1410@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:27:23.341 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:27:23.341 ***🔗
alice_allow_subscription_to_from_message_1410@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 09:27:23
=== successfully completed test case
=== === Returned value: ok