=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.95852.0>},
{escalus_no_stanzas_after_story,true},
{preset,"odbc_mssql_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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.privacy_SUITE.logs/run.2024-04-16_10.29.36/privacy_suite.allow_subscription_to_from_message.217859.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.privacy_SUITE.logs/run.2024-04-16_10.29.36/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_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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_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@d67ced1141dd.2024-04-16_10.12.40"
=== Started at 2024-04-16 10:29:37
*** User 2024-04-16 10:29:37.945 ***🔗
alicE_allow_subscription_to_from_message_3862@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 10:29:37.946 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae199ad0e9da37cc' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:29:37.946 ***🔗
alicE_allow_subscription_to_from_message_3862@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 10:29:37.946 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMzg2MgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 10:29:37.947 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:29:37.947 ***🔗
alicE_allow_subscription_to_from_message_3862@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 10:29:37.947 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3141dee8ba5fb469' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_3862@localhost'>
*** User 2024-04-16 10:29:37.947 ***🔗
alicE_allow_subscription_to_from_message_3862@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 10:29:37.947 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='2146fc38a047b36fd0d67b4e4ce5cbfb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:29:37.948 ***🔗
alicE_allow_subscription_to_from_message_3862@localhost/res1 in
<iq id='2146fc38a047b36fd0d67b4e4ce5cbfb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_3862@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:29:37.948 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='188aab6e14d0716795821475c8263776'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:29:37.949 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='188aab6e14d0716795821475c8263776' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:29:37.949 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<presence/>
*** User 2024-04-16 10:29:37.951 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_3862@localhost/res1' to='alice_allow_subscription_to_from_message_3862@localhost/res1'/>
*** User 2024-04-16 10:29:37.951 ***🔗
bOb_allow_subscription_to_from_message_3862@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 10:29:37.952 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='57dadee044d36463' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:29:37.952 ***🔗
bOb_allow_subscription_to_from_message_3862@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 10:29:37.952 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzM4NjIAbWFrcm9saWth</auth>
*** User 2024-04-16 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@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 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='366903cdecee7256' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_3862@localhost'>
*** User 2024-04-16 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@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 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='e5a23054b2d414a109f8dd76081eea2b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:29:37.953 ***🔗
bOb_allow_subscription_to_from_message_3862@localhost/res1 in
<iq id='e5a23054b2d414a109f8dd76081eea2b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_3862@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:29:37.954 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='bae0c3bdea8660f8c99816b1775e3741'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:29:37.955 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='bae0c3bdea8660f8c99816b1775e3741' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:29:37.955 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<presence/>
*** User 2024-04-16 10:29:37.957 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_3862@localhost/res1' to='bob_allow_subscription_to_from_message_3862@localhost/res1'/>
*** User 2024-04-16 10:29:37.957 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='ce0ff1ce022344ed357e7bc165b802a5'>
<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 10:29:37.964 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='push9553d7ac3a1043a1' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.965 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='ce0ff1ce022344ed357e7bc165b802a5' type='result'/>
*** User 2024-04-16 10:29:37.965 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='get' id='b65ac0c9e4b66855a5672178ca0a09c5'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.966 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='b65ac0c9e4b66855a5672178ca0a09c5' 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 10:29:37.966 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='c2e0772be891338f93e5a430a014fdd6'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.969 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='c2e0772be891338f93e5a430a014fdd6' type='result'/>
*** User 2024-04-16 10:29:37.969 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='f2a199504b8d3f2baa4ff8247ba2c037'>
<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 10:29:37.973 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='pushc79d72555b93fba6' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.974 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='f2a199504b8d3f2baa4ff8247ba2c037' type='result'/>
*** User 2024-04-16 10:29:37.974 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='get' id='b3e72a913a4425f8c88b2a859ab8d855'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.975 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='b3e72a913a4425f8c88b2a859ab8d855' 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 10:29:37.975 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<iq type='set' id='cd6aa8330061b1097a717fa123dbf4b1'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-16 10:29:37.979 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='cd6aa8330061b1097a717fa123dbf4b1' type='result'/>
*** User 2024-04-16 10:29:37.979 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_3862@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 10:29:37.979 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_3862@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 10:29:38.030 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_3862@localhost/res1' to='alice_allow_subscription_to_from_message_3862@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 10:29:38.030 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_3862@localhost/res1' to='bob_allow_subscription_to_from_message_3862@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 10:29:38.031 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_3862@localhost'/>
*** User 2024-04-16 10:29:38.039 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='push137481105d790851' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_3862@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:29:38.039 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' type='subscribe'/>
*** User 2024-04-16 10:29:38.039 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_3862@localhost'/>
*** User 2024-04-16 10:29:38.047 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_3862@localhost' to='bob_allow_subscription_to_from_message_3862@localhost/res1' id='push7a29fb78e3e4c5f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_3862@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 10:29:38.047 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' id='pushd423ac8a8fbe2b69' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_3862@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:29:38.048 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_3862@localhost' to='alice_allow_subscription_to_from_message_3862@localhost/res1' type='subscribed'/>
*** User 2024-04-16 10:29:38.063 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_3862@localhost/res1' to='alice_allow_subscription_to_from_message_3862@localhost/res1'/>
*** User 2024-04-16 10:29:38.064 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_3862@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 10:29:38.067 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_3862@localhost/res1' to='alice_allow_subscription_to_from_message_3862@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-16 10:29:38.067 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_3862@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 10:29:38.070 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_3862@localhost/res1' to='bob_allow_subscription_to_from_message_3862@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-16 10:29:38.070 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:29:38.071 ***🔗
bob_allow_subscription_to_from_message_3862@localhost/res1 in
</stream:stream>
*** User 2024-04-16 10:29:38.071 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 out
</stream:stream>
*** User 2024-04-16 10:29:38.073 ***🔗
alice_allow_subscription_to_from_message_3862@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:29:38
=== successfully completed test case
=== === Returned value: ok