<test-history test='Dynamic Roster 1 (c2s)'>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<stream:stream xmlns="jabber:client" id="6c002320-2317-47ea-bf83-8e958d8910d7" version="1.0" xml:lang="en" from="test-d" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<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='Dynamic Roster 1 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<stream:stream xmlns="jabber:client" id="6c002320-2317-47ea-bf83-8e958d8910d7" version="1.0" xml:lang="en" from="test-d" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<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='Dynamic Roster 1 (c2s)'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" 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='Dynamic Roster 1 (c2s)'>
<iq type="get" id="roster_dynamic_1">
<query xmlns="jabber:iq:roster-dynamic"/>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="error" id="roster_dynamic_1" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster-dynamic"/><error type="modify" code="400"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Missing 'item' element, request can not be processed.</text></error></iq>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="get" id="roster_dynamic_2">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="copernicus@eureka.com"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_2" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster-dynamic"><item jid="copernicus@eureka.com"/></query></iq>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="set" id="roster_dynamic_3">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="copernicus@eureka.com">
<note>This a note about Copernicus</note>
<phone>+12 3456 789012</phone>
</item>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_3" to="all-xmpp-test@test-d/def-user-resource"/>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="get" id="roster_dynamic_4">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="copernicus@eureka.com"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_4" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster-dynamic"><item jid="copernicus@eureka.com">
<note>This a note about Copernicus</note>
<phone>+12 3456 789012</phone>
</item></query></iq>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="set" id="roster_dynamic_5">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="copernicus@eureka.com">
<note>This a note about Copernicus</note>
<phone>+12 3456 789012</phone>
</item>
<item jid="newton@eureka.com">
<note>Newton is heavy!</note>
<phone>+12 3456 777777</phone>
</item>
<item jid="pascal@eureka.com">
<note>Pascal is great!</note>
<phone>+12 3456 888888</phone>
</item>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_5" to="all-xmpp-test@test-d/def-user-resource"/>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="get" id="roster_dynamic_6">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="newton@eureka.com"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_6" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster-dynamic"><item jid="newton@eureka.com">
<note>Newton is heavy!</note>
<phone>+12 3456 777777</phone>
</item></query></iq>
</INPUT>
<OUTPUT test='Dynamic Roster 1 (c2s)'>
<iq type="get" id="roster_dynamic_7">
<query xmlns="jabber:iq:roster-dynamic">
<item jid="pascal@eureka.com"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Dynamic Roster 1 (c2s)'>
<iq xmlns="jabber:client" type="result" id="roster_dynamic_7" to="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:roster-dynamic"><item jid="pascal@eureka.com">
<note>Pascal is great!</note>
<phone>+12 3456 888888</phone>
</item></query></iq>
</INPUT>

</test-history>