<test-history test='Presence 7 (c2s)'>
<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 xmlns="jabber:client" id="f2212876-aa1f-454d-8192-946b28c7bc72" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='Subscription receive'>
<stream:features><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><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/></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 xmlns="jabber:client" id="f2212876-aa1f-454d-8192-946b28c7bc72" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='Subscription receive'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><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 xmlns="jabber:client" id="bind1" type="result" to="all-xmpp-test@test-d/def-user-resource"><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 xmlns="jabber:client" id="roster_1" type="result" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq xmlns="jabber:client" id="tig3" type="set" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item subscription="both" jid="dynrost@test-d" name="dynrost"><group>test group</group></item></query></iq>
</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 xmlns="jabber:client" id="3756f5d2-596f-42a5-94f0-283a9f986680" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" xml:lang="en" version="1.0"/>
</INPUT>
<INPUT test='Subscription send'>
<stream:features><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><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/></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 xmlns="jabber:client" id="3756f5d2-596f-42a5-94f0-283a9f986680" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" xml:lang="en" version="1.0"/>
</INPUT>
<INPUT test='Subscription send'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><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 xmlns="jabber:client" id="bind1" type="result" to="admin@test-d/def-user-resource"><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 xmlns="jabber:client" id="roster_1" type="result" to="admin@test-d/def-user-resource"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Subscription send'>
<iq xmlns="jabber:client" id="tig3" type="set" to="admin@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item subscription="both" jid="dynrost@test-d" name="dynrost"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Subscription send'>
<presence id="1" type="subscribe" to="all-xmpp-test@test-d"/>
</OUTPUT>
<INPUT test='Subscription send'>
<iq xmlns="jabber:client" id="rsttig4" type="set" to="admin@test-d/def-user-resource"><query xmlns="jabber:iq:roster" ver="63c4b413ac6427886eb086952ab95e2a"><item subscription="none" jid="all-xmpp-test@test-d" name="all-xmpp-test" ask="subscribe"/></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<presence xmlns="jabber:client" id="1" from="admin@test-d" type="subscribe" to="all-xmpp-test@test-d"/>
</INPUT>
<OUTPUT test='Subscription receive'>
<presence id="1" type="unsubscribed" to="admin@test-d"/>
</OUTPUT>
<OUTPUT test='Subscription receive'>
<iq id="roster_d1" type="get">
<query xmlns="jabber:iq:roster"/>
</iq>
</OUTPUT>
<INPUT test='Subscription send'>
<presence xmlns="jabber:client" id="1" from="all-xmpp-test@test-d" type="unsubscribed" to="admin@test-d"/>
</INPUT>
<INPUT test='Subscription send'>
<iq xmlns="jabber:client" id="rsttig5" type="set" to="admin@test-d/def-user-resource"><query xmlns="jabber:iq:roster" ver="63c4b413ac6427886eb086952ab95e2a"><item subscription="none" jid="all-xmpp-test@test-d" name="all-xmpp-test"/></query></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq xmlns="jabber:client" id="roster_d1" type="result" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Subscription receive'>
<iq xmlns="jabber:client" id="tig4" type="set" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item subscription="both" jid="dynrost@test-d" name="dynrost"><group>test group</group></item></query></iq>
</INPUT>

</test-history>