<test-history test='Bosh 12'>
<OUTPUT test='Bosh 12'>
<body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' xml:lang='en' rid='1216' content='text/xml; charset=utf-8' to='test-d' ver='1.6'/>
</OUTPUT>
<INPUT test='Bosh 12'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><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>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms></stream:features>
</INPUT>
<OUTPUT test='Bosh 12'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Bosh 12'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9IlZQU2x5ak1ZTDZGSk5ubC93b2N4YjhIaDE4ZjM5MGRhekt0RStCU1kiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Bosh 12'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IlZQU2x5ak1ZTDZGSk5ubC93b2N4YjhIaDE4ZjM5MGRhekt0RStCU1kiLG5jPTAwMDAwMDAxLGNub25jZT0iSU9WT2VmeVhKZkZadFNHRWRkRnNDeTUybnFOd0FPb3lma0RNRTNYdyIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1hNzRiYjMwZWFmZTYzMzlhZDI2NjE1NTlkMzM1ZjMwZCxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Bosh 12'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0yMWE4ZjI0M2U2MDc2NzljNGRjMDFhM2MxNDExYmJmMg==</success>
</INPUT>
<OUTPUT test='Bosh 12'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Bosh 12'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="bind1" 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='Bosh 12'>
<iq type="get" id="roster_1">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="dr-1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="dynrost@test-d" name="dynrost" subscription="both"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="set" id="roster_2">
<query xmlns="jabber:iq:roster">
<item jid="santa.claus@north.pole" name="claus"/></query>
</iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_2" to="all-xmpp-test@test-d/def-user-resource"/>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="rsttig2" to="all-xmpp-test@test-d"><query xmlns="jabber:iq:roster"><item jid="santa.claus@north.pole" name="claus" subscription="none"/></query></iq>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="get" id="roster_3">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_3" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="santa.claus@north.pole" name="claus" subscription="none"/></query></iq>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="dr-1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="dynrost@test-d" name="dynrost" subscription="both"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="set" id="roster_4">
<query xmlns="jabber:iq:roster">
<item jid="santa.claus@north.pole" name="claus">
<group>guests</group>
</item>
</query>
</iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_4" to="all-xmpp-test@test-d/def-user-resource"/>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="rsttig4" to="all-xmpp-test@test-d"><query xmlns="jabber:iq:roster"><item jid="santa.claus@north.pole" name="claus" subscription="none"><group>guests</group></item></query></iq>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="get" id="roster_5">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_5" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="santa.claus@north.pole" name="claus" subscription="none"><group>guests</group></item></query></iq>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="dr-1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="dynrost@test-d" name="dynrost" subscription="both"><group>test group</group></item></query></iq>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="set" id="roster_6">
<query xmlns="jabber:iq:roster">
<item jid="santa.claus@north.pole" name="claus" subscription="remove"/></query>
</iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="rsttig6" to="all-xmpp-test@test-d"><query xmlns="jabber:iq:roster"><item jid="santa.claus@north.pole" subscription="remove"/></query></iq>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_6" to="all-xmpp-test@test-d/def-user-resource"/>
</INPUT>
<OUTPUT test='Bosh 12'>
<iq type="get" id="roster_7">
<query xmlns="jabber:iq:roster"/></iq>
</OUTPUT>
<INPUT test='Bosh 12'>
<iq type="result" id="roster_7" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"/></iq>
</INPUT>
<INPUT test='Bosh 12'>
<iq type="set" id="dr-1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster"><item jid="dynrost@test-d" name="dynrost" subscription="both"><group>test group</group></item></query></iq>
</INPUT>

</test-history>