<test-history test='Basic 14 (bosh-keep-alive)'>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<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='Basic 14 (bosh-keep-alive)'>
<stream:features xmlns="jabber:client"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<stream:features xmlns="jabber:client"><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><sub xmlns="urn:xmpp:features:pre-approval"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session></stream:features>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<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 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="bind1" 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='Basic 14 (bosh-keep-alive)'>
<iq id="1" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="1" type="result"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick></exodus></query></iq>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<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 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="2" type="result"/>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<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 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="3" type="result"/>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<iq id="4" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="4" type="result"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick></exodus></query></iq>
</INPUT>
<OUTPUT test='Basic 14 (bosh-keep-alive)'>
<iq id="5" type="get">
<query xmlns="jabber:iq:private">
<test-data xmlns="tigase:test"/>
</query>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="5" type="result"><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 (bosh-keep-alive)'>
<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 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="1003" from="hamlet@shakespeare.lit" type="error"><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 (bosh-keep-alive)'>
<iq id="1004" type="get">
<query xmlns="jabber:iq:private"/>
</iq>
</OUTPUT>
<INPUT test='Basic 14 (bosh-keep-alive)'>
<iq to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" id="1004" type="error"><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>