<test-history test='Test 25'>
<OUTPUT test='Subscription receive'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Subscription receive'>
<stream:stream id="f816983d-84e1-4cdf-aea4-a35e13b11516" xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" from="test-d"/>
</INPUT>
<INPUT test='Subscription receive'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='Subscription receive'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Subscription receive'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Subscription receive'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Subscription receive'>
<stream:stream id="f816983d-84e1-4cdf-aea4-a35e13b11516" xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" from="test-d"/>
</INPUT>
<INPUT test='Subscription receive'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Subscription receive'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Subscription receive'>
<iq id="bind1" to="all-xmpp-test@test-d/def-user-resource" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Subscription receive'>
<iq id="roster_1" type="get">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Subscription receive'>
<iq id="roster_1" to="all-xmpp-test@test-d/def-user-resource" type="result"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq id="dr-1" to="all-xmpp-test@test-d/def-user-resource" type="set"><query xmlns="jabber:iq:roster"><item name="dynrost" subscription="both" jid="dynrost@test-d"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Subscription receive'>
<presence id="1" type="available"/>
</OUTPUT>
<OUTPUT test='Subscription send'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Subscription send'>
<stream:stream id="586f30ac-98af-4fdd-8671-e276dd3be86d" xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" from="test-d"/>
</INPUT>
<INPUT test='Subscription send'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='Subscription send'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFkbWluAHN0YXRz</auth>
</OUTPUT>
<INPUT test='Subscription send'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Subscription send'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Subscription send'>
<stream:stream id="586f30ac-98af-4fdd-8671-e276dd3be86d" xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" from="test-d"/>
</INPUT>
<INPUT test='Subscription send'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Subscription send'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="bind1" to="admin@test-d/def-user-resource" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>admin@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Subscription send'>
<iq id="roster_1" type="get">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="roster_1" to="admin@test-d/def-user-resource" type="result"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Subscription send'>
<iq id="dr-1" to="admin@test-d/def-user-resource" type="set"><query xmlns="jabber:iq:roster"><item name="dynrost" subscription="both" jid="dynrost@test-d"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Subscription send'>
<presence id="1" type="available"/>
</OUTPUT>
<OUTPUT test='Subscription send'>
<presence id="1" to="all-xmpp-test@test-d" type="subscribe"/>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="rsttig1" to="admin@test-d" type="set"><query xmlns="jabber:iq:roster"><item ask="subscribe" name="all-xmpp-test" subscription="none" jid="all-xmpp-test@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<presence id="1" to="all-xmpp-test@test-d" from="admin@test-d" type="subscribe"/>
</INPUT>
<OUTPUT test='Subscription receive'>
<presence id="1" to="admin@test-d" type="subscribed"/>
</OUTPUT>
<INPUT test='Subscription receive'>
<iq id="rsttig1" to="all-xmpp-test@test-d" type="set"><query xmlns="jabber:iq:roster"><item name="admin" subscription="from" jid="admin@test-d"/></query></iq>
</INPUT>
<OUTPUT test='Subscription receive'>
<presence id="1" to="admin@test-d" type="subscribe"/>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="rsttig2" to="admin@test-d" type="set"><query xmlns="jabber:iq:roster"><item name="all-xmpp-test" subscription="to" jid="all-xmpp-test@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription send'>
<presence id="1" to="admin@test-d" from="all-xmpp-test@test-d/def-user-resource" type="available"/>
</INPUT>
<INPUT test='Subscription receive'>
<iq id="rsttig2" to="all-xmpp-test@test-d" type="set"><query xmlns="jabber:iq:roster"><item ask="subscribe" name="admin" subscription="from" jid="admin@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription send'>
<presence id="1" to="admin@test-d" from="all-xmpp-test@test-d" type="subscribe"/>
</INPUT>
<OUTPUT test='Subscription send'>
<presence id="1" to="all-xmpp-test@test-d" type="subscribed"/>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="rsttig3" to="admin@test-d" type="set"><query xmlns="jabber:iq:roster"><item name="all-xmpp-test" subscription="both" jid="all-xmpp-test@test-d"/></query></iq>
</INPUT>
<OUTPUT test='Subscription send'>
<iq id="roster_11" type="get">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Subscription send'>
<iq id="roster_11" to="admin@test-d/def-user-resource" type="result"><query xmlns="jabber:iq:roster"><item name="all-xmpp-test" subscription="both" jid="all-xmpp-test@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription send'>
<iq id="dr-1" to="admin@test-d/def-user-resource" type="set"><query xmlns="jabber:iq:roster"><item name="dynrost" subscription="both" jid="dynrost@test-d"><group>test group</group></item></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq id="rsttig3" to="all-xmpp-test@test-d" type="set"><query xmlns="jabber:iq:roster"><item name="admin" subscription="both" jid="admin@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<presence id="1" to="all-xmpp-test@test-d" from="admin@test-d/def-user-resource" type="available"/>
</INPUT>
<OUTPUT test='Subscription receive'>
<iq id="roster_28" type="get">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Subscription receive'>
<iq id="roster_28" to="all-xmpp-test@test-d/def-user-resource" type="result"><query xmlns="jabber:iq:roster"><item name="admin" subscription="both" jid="admin@test-d"/></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq id="dr-1" to="all-xmpp-test@test-d/def-user-resource" type="set"><query xmlns="jabber:iq:roster"><item name="dynrost" subscription="both" jid="dynrost@test-d"><group>test group</group></item></query></iq>
</INPUT>

</test-history>