<test-history test='Basic 14 (c2s)'>
<OUTPUT test='Basic 14 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<stream:stream id="daed5486-a3cf-445f-a0fd-6a7e2dbb906a" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='Basic 14 (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='Basic 14 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<stream:stream id="daed5486-a3cf-445f-a0fd-6a7e2dbb906a" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='Basic 14 (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='Basic 14 (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='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="bind1" type="result" xmlns="jabber:client"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="1" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1" type="result" xmlns="jabber:client"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs"/></query></iq>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="2" type="set">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick>
</exodus>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="2" type="result" xmlns="jabber:client"/>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="3" type="set">
<query xmlns="jabber:iq:private">
<test-data xmlns="tigase:test">
<data-element>and the content</data-element>
</test-data>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="3" type="result" xmlns="jabber:client"/>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="4" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="4" type="result" xmlns="jabber:client"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick>
</exodus></query></iq>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="5" type="get">
<query xmlns="jabber:iq:private">
<test-data xmlns="tigase:test"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="5" type="result" xmlns="jabber:client"><query xmlns="jabber:iq:private"><test-data xmlns="tigase:test">
<data-element>and the content</data-element>
</test-data></query></iq>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq to="hamlet@shakespeare.lit" id="1003" type="set">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Macbeth</defaultnick>
</exodus>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1003" type="error" from="hamlet@shakespeare.lit" xmlns="jabber:client"><query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Macbeth</defaultnick>
</exodus>
</query><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">You are not authorized to access this private storage.</text></error></iq>
</INPUT>
<OUTPUT test='Basic 14 (c2s)'>
<iq id="1004" type="get">
<query xmlns="jabber:iq:private"/>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1004" type="error" xmlns="jabber:client"><query xmlns="jabber:iq:private"/><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Missing query child element</text></error></iq>
</INPUT>

</test-history>