=== Test case: privacy_SUITE:allow_subscription_both_message/1 (click for source code)

=== Config value:

    [{watchdog,<0.26462.1>},
     {escalus_no_stanzas_after_story,true},
     {backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/privacy_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.privacy_SUITE.logs/run.2022-03-07_16.05.02/privacy_suite.allow_subscription_both_message.59140.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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.privacy_SUITE.logs/run.2022-03-07_16.05.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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},{time_to_live,2}],
        mod_carboncopy => [],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"}]},
             {welcome_message,{[],[]}}],
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@333794cb5a72.2022-03-07_15.57.24"

=== Started at 2022-03-07 16:05:03


*** CT 2022-03-07 16:05:03.561 *** View log from node mongooseim@localhost when started mongooseim@localhost_1446.html
*** CT 2022-03-07 16:05:03.562 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-07 16:05:03.572 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:03.573 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f25e02f80f176b3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:03.573 ***
alicE_allow_subscription_both_message_1734@domain.example.com/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-03-07 16:05:03.573 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbG93X3N1YnNjcmlwdGlvbl9ib3RoX21lc3NhZ2VfMTczNABtYXR5Z3J5c2E=</auth>



*** User 2022-03-07 16:05:03.575 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:03.576 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:03.576 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2debe0df51736296' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:03.577 ***
alicE_allow_subscription_both_message_1734@domain.example.com/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-03-07 16:05:03.577 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='55c99267cb0a9cd005b4608752f5c484'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:03.577 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq id='55c99267cb0a9cd005b4608752f5c484' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_allow_subscription_both_message_1734@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:03.577 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='5ce6dc8d2e73ed05fcbb82c7b3286193'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:03.577 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq type='result' id='5ce6dc8d2e73ed05fcbb82c7b3286193'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:03.578 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:03.580 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='alicE_allow_subscription_both_message_1734@domain.example.com/res1' to='alice_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:03.581 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:03.581 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b759dc659bcab406' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:03.581 ***
bOb_allow_subscription_both_message_1734@domain.example.com/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-03-07 16:05:03.582 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxvd19zdWJzY3JpcHRpb25fYm90aF9tZXNzYWdlXzE3MzQAbWFrcm9saWth</auth>



*** User 2022-03-07 16:05:03.583 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:05:03.583 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:05:03.583 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0f34e43215c7b63' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:05:03.583 ***
bOb_allow_subscription_both_message_1734@domain.example.com/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-03-07 16:05:03.584 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='a83a0f17ddf9a5184efffd3bcaf50654'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:05:03.584 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq id='a83a0f17ddf9a5184efffd3bcaf50654' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_allow_subscription_both_message_1734@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:05:03.584 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='06170cf717611fac21efa2307b89a1bb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:03.584 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq type='result' id='06170cf717611fac21efa2307b89a1bb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:05:03.585 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:05:03.587 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='bOb_allow_subscription_both_message_1734@domain.example.com/res1' to='bob_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:03.587 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence type='subscribe' to='bOb_allow_subscription_both_message_1734@domain.example.com'/>



*** User 2022-03-07 16:05:03.592 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='push123b08681554b00e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.592 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='alicE_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-03-07 16:05:03.593 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence type='subscribed' to='alicE_allow_subscription_both_message_1734@domain.example.com'/>



*** User 2022-03-07 16:05:03.597 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='push25fd592f500afb49' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.597 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='push5334e4fb8a423485' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.597 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='bOb_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='subscribed'/>



*** User 2022-03-07 16:05:03.597 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='bOb_allow_subscription_both_message_1734@domain.example.com/res1' to='alice_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:03.597 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='33f715c0503f3abd07cfc47c06ee7211'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'>
			<item order='1' type='subscription' value='both' action='allow'>
				<message/>
			</item>
			<item order='2' action='deny'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-03-07 16:05:03.600 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='push599352635b568194' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.600 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='33f715c0503f3abd07cfc47c06ee7211' type='result'/>



*** User 2022-03-07 16:05:03.600 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='get' id='38b3ff8a05448f24f6985acda46dcb71'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.601 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='38b3ff8a05448f24f6985acda46dcb71' type='result'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'>
			<item type='subscription' value='both' action='allow' order='1'>
				<message/>
			</item>
			<item action='deny' order='2'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-03-07 16:05:03.601 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='4806ac150de8c290e76c3519781bef7a'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.602 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='4806ac150de8c290e76c3519781bef7a' type='result'/>



*** User 2022-03-07 16:05:03.602 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='400819dd438bd38d7ad97aa0ec7ea4f4'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'>
			<item order='1' type='subscription' value='both' action='allow'>
				<message/>
			</item>
			<item order='2' action='deny'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-03-07 16:05:03.604 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='push974a36ae0883d022' type='set'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.605 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='400819dd438bd38d7ad97aa0ec7ea4f4' type='result'/>



*** User 2022-03-07 16:05:03.605 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='get' id='a17bc15941832ff0c255d2bbd89343b3'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.605 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='a17bc15941832ff0c255d2bbd89343b3' type='result'>
	<query xmlns='jabber:iq:privacy'>
		<list name='deny_all_message_but_subscription_both'>
			<item type='subscription' value='both' action='allow' order='1'>
				<message/>
			</item>
			<item action='deny' order='2'>
				<message/>
			</item>
		</list>
	</query>
</iq>



*** User 2022-03-07 16:05:03.606 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<iq type='set' id='6110e663bc0e66b3cf184336369d8f75'>
	<query xmlns='jabber:iq:privacy'>
		<active name='deny_all_message_but_subscription_both'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.607 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='6110e663bc0e66b3cf184336369d8f75' type='result'/>



*** User 2022-03-07 16:05:03.607 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<message to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-07 16:05:03.607 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<message to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' type='chat'>
	<body>Hi, Bob XYZ 1!</body>
</message>



*** User 2022-03-07 16:05:03.611 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<message from='bOb_allow_subscription_both_message_1734@domain.example.com/res1' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' type='error' xml:lang='en'>
	<body>Hi, Bob XYZ 1!</body>
	<error code='503' type='cancel'>
		<service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
	</error>
</message>



*** User 2022-03-07 16:05:03.611 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<message from='alicE_allow_subscription_both_message_1734@domain.example.com/res1' to='bOb_allow_subscription_both_message_1734@domain.example.com/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-03-07 16:05:03.611 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence type='subscribe' to='alicE_allow_subscription_both_message_1734@domain.example.com'/>



*** User 2022-03-07 16:05:03.615 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='push2e5d4522cdc742b6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.615 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='push384882c5510f7b76' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.615 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<presence type='subscribed' to='bOb_allow_subscription_both_message_1734@domain.example.com'/>



*** User 2022-03-07 16:05:03.615 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='bOb_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-03-07 16:05:03.620 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='alicE_allow_subscription_both_message_1734@domain.example.com' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' id='push5218afc634610c7b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.620 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<iq from='bOb_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' id='pushe7a7b7f0611da9b9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_allow_subscription_both_message_1734@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-07 16:05:03.620 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='alicE_allow_subscription_both_message_1734@domain.example.com' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='subscribed'/>



*** User 2022-03-07 16:05:03.620 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<presence from='alicE_allow_subscription_both_message_1734@domain.example.com/res1' to='bob_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:05:03.620 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
<message to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-07 16:05:03.622 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
<message from='bOb_allow_subscription_both_message_1734@domain.example.com/res1' to='alicE_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='chat'>
	<body>Hi, Alice XYZ!</body>
</message>



*** User 2022-03-07 16:05:03.622 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
<message to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' type='chat'>
	<body>Hi, Bob XYZ! 2</body>
</message>



*** User 2022-03-07 16:05:03.624 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
<message from='alicE_allow_subscription_both_message_1734@domain.example.com/res1' to='bOb_allow_subscription_both_message_1734@domain.example.com/res1' xml:lang='en' type='chat'>
	<body>Hi, Bob XYZ! 2</body>
</message>



*** User 2022-03-07 16:05:03.624 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:03.640 ***
bOb_allow_subscription_both_message_1734@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-07 16:05:03.640 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:05:03.643 ***
alicE_allow_subscription_both_message_1734@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-07 16:05:03.649 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-07 16:05:03.654 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1446.html



=== Ended at 2022-03-07 16:05:03
=== successfully completed test case
=== === Returned value: ok