=== Test case: privacy_SUITE:allow_subscription_to_from_message/1 (click for source code)
=== Config value:
[{watchdog,<0.80967.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@ddae1a9683cd.2024-04-23_06.47.23/big_tests.tests.privacy_SUITE.logs/run.2024-04-23_07.01.11/privacy_suite.allow_subscription_to_from_message.214530.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@ddae1a9683cd.2024-04-23_06.47.23/big_tests.tests.privacy_SUITE.logs/run.2024-04-23_07.01.11/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,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_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_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ddae1a9683cd.2024-04-23_06.47.23"
=== Started at 2024-04-23 07:01:12
*** User 2024-04-23 07:01:12.995 ***🔗
alicE_allow_subscription_to_from_message_2922@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-23 07:01:12.996 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36316f85b8f17405' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 07:01:12.996 ***🔗
alicE_allow_subscription_to_from_message_2922@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-23 07:01:12.996 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl90b19mcm9tX21lc3NhZ2VfMjkyMgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 07:01:12.997 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 07:01:12.997 ***🔗
alicE_allow_subscription_to_from_message_2922@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-23 07:01:12.997 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='64b138f37d600111' from='localhost' version='1.0' xml:lang='en' to='alice_allow_subscription_to_from_message_2922@localhost'>
*** User 2024-04-23 07:01:12.998 ***🔗
alicE_allow_subscription_to_from_message_2922@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-23 07:01:12.998 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='a1e29fb581ce505de4506addbd99ff17'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 07:01:12.998 ***🔗
alicE_allow_subscription_to_from_message_2922@localhost/res1 in
<iq id='a1e29fb581ce505de4506addbd99ff17' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_allow_subscription_to_from_message_2922@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 07:01:12.998 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='f29289e054c170984326c7a19114d6dd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 07:01:13.000 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='f29289e054c170984326c7a19114d6dd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 07:01:13.000 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<presence/>
*** User 2024-04-23 07:01:13.003 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2922@localhost/res1' to='alice_allow_subscription_to_from_message_2922@localhost/res1'/>
*** User 2024-04-23 07:01:13.004 ***🔗
bOb_allow_subscription_to_from_message_2922@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-23 07:01:13.004 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='716b752c3beae398' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 07:01:13.004 ***🔗
bOb_allow_subscription_to_from_message_2922@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-23 07:01:13.004 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fdG9fZnJvbV9tZXNzYWdlXzI5MjIAbWFrcm9saWth</auth>
*** User 2024-04-23 07:01:13.005 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 07:01:13.005 ***🔗
bOb_allow_subscription_to_from_message_2922@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-23 07:01:13.005 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='52d2867c22bb67cd' from='localhost' version='1.0' xml:lang='en' to='bob_allow_subscription_to_from_message_2922@localhost'>
*** User 2024-04-23 07:01:13.006 ***🔗
bOb_allow_subscription_to_from_message_2922@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-23 07:01:13.006 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='f36bd3d4e377ba92f64be260b04764a8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 07:01:13.006 ***🔗
bOb_allow_subscription_to_from_message_2922@localhost/res1 in
<iq id='f36bd3d4e377ba92f64be260b04764a8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_allow_subscription_to_from_message_2922@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 07:01:13.006 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='214264c570c1bb48a6643bd4d0756d77'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 07:01:13.008 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='214264c570c1bb48a6643bd4d0756d77' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 07:01:13.008 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<presence/>
*** User 2024-04-23 07:01:13.010 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2922@localhost/res1' to='bob_allow_subscription_to_from_message_2922@localhost/res1'/>
*** User 2024-04-23 07:01:13.010 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='6d10eaaaa2d67bf03894909db9c766a5'>
<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-23 07:01:13.015 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='push0ddaf852d98d90aa' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.015 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='6d10eaaaa2d67bf03894909db9c766a5' type='result'/>
*** User 2024-04-23 07:01:13.015 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='get' id='76e278da553239418c339fedb2c987bd'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.017 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='76e278da553239418c339fedb2c987bd' 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-23 07:01:13.017 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='f21ee05232a257e3426693b7f7a6ab32'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_to'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.020 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='f21ee05232a257e3426693b7f7a6ab32' type='result'/>
*** User 2024-04-23 07:01:13.020 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='10ffd7f03c6e26830eba4a65cf7c0f1d'>
<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-23 07:01:13.025 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='push3f6bfdd131e5b914' type='set'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.025 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='10ffd7f03c6e26830eba4a65cf7c0f1d' type='result'/>
*** User 2024-04-23 07:01:13.026 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='get' id='7641e55d0fab66c160d643cac1843f15'>
<query xmlns='jabber:iq:privacy'>
<list name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.027 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='7641e55d0fab66c160d643cac1843f15' 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-23 07:01:13.027 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<iq type='set' id='1a51ca78f9612f26cd9fd6421dd2e0f1'>
<query xmlns='jabber:iq:privacy'>
<active name='deny_all_message_but_subscription_from'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.032 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='1a51ca78f9612f26cd9fd6421dd2e0f1' type='result'/>
*** User 2024-04-23 07:01:13.032 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2922@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.032 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2922@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.083 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2922@localhost/res1' to='alice_allow_subscription_to_from_message_2922@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-23 07:01:13.083 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2922@localhost/res1' to='bob_allow_subscription_to_from_message_2922@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-23 07:01:13.083 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<presence type='subscribe' to='bob_allow_subscription_to_from_message_2922@localhost'/>
*** User 2024-04-23 07:01:13.090 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='push6614257d46ff6c80' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_allow_subscription_to_from_message_2922@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.090 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<presence from='alice_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' type='subscribe'/>
*** User 2024-04-23 07:01:13.090 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<presence type='subscribed' to='alice_allow_subscription_to_from_message_2922@localhost'/>
*** User 2024-04-23 07:01:13.099 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='bob_allow_subscription_to_from_message_2922@localhost' to='bob_allow_subscription_to_from_message_2922@localhost/res1' id='push1d41ddf974ab19a3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_allow_subscription_to_from_message_2922@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.099 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<iq from='alice_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' id='push919cf16d7f4a7e3e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_allow_subscription_to_from_message_2922@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-23 07:01:13.100 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2922@localhost' to='alice_allow_subscription_to_from_message_2922@localhost/res1' type='subscribed'/>
*** User 2024-04-23 07:01:13.101 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<presence from='bob_allow_subscription_to_from_message_2922@localhost/res1' to='alice_allow_subscription_to_from_message_2922@localhost/res1'/>
*** User 2024-04-23 07:01:13.101 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
<message type='chat' to='alice_allow_subscription_to_from_message_2922@localhost/res1'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.105 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
<message from='bob_allow_subscription_to_from_message_2922@localhost/res1' to='alice_allow_subscription_to_from_message_2922@localhost/res1' type='chat'>
<body>Hi, Alice XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.105 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
<message type='chat' to='bob_allow_subscription_to_from_message_2922@localhost/res1'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.109 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
<message from='alice_allow_subscription_to_from_message_2922@localhost/res1' to='bob_allow_subscription_to_from_message_2922@localhost/res1' type='chat'>
<body>Hi, Bob XYZ!</body>
</message>
*** User 2024-04-23 07:01:13.109 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 out
</stream:stream>
*** User 2024-04-23 07:01:13.110 ***🔗
bob_allow_subscription_to_from_message_2922@localhost/res1 in
</stream:stream>
*** User 2024-04-23 07:01:13.110 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 out
</stream:stream>
*** User 2024-04-23 07:01:13.112 ***🔗
alice_allow_subscription_to_from_message_2922@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 07:01:13
=== successfully completed test case
=== === Returned value: ok