<test-history test='PubSub 3 (c2s)'>
<OUTPUT test='PubSub 3 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 3 (c2s)'>
<stream:stream xml:lang="en" id="bccb2f4f-c673-4316-ad1c-dc436e6b2f0d" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client"/>
</INPUT>
<INPUT test='PubSub 3 (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='PubSub 3 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='PubSub 3 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='PubSub 3 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 3 (c2s)'>
<stream:stream xml:lang="en" id="bccb2f4f-c673-4316-ad1c-dc436e6b2f0d" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client"/>
</INPUT>
<INPUT test='PubSub 3 (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='PubSub 3 (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='PubSub 3 (c2s)'>
<iq type="result" id="bind1" to="all-xmpp-test@test-d/def-user-resource" 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='PubSub 3 (c2s)'>
<iq type="set" id="subs1" to="pubsub.test-d" from="all-xmpp-test@test-d/def-user-resource">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<subscriptions node="princely_musings">
<subscription jid="bard@shakespeare.lit" subscription="subscribed"/>
</subscriptions>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 3 (c2s)'>
<iq type="result" id="subs1" to="all-xmpp-test@test-d/def-user-resource" from="pubsub.test-d" xmlns="jabber:client"/>
</INPUT>
<OUTPUT test='PubSub 3 (c2s)'>
<iq type="get" id="subs2" to="pubsub.test-d" from="all-xmpp-test@test-d/def-user-resource">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<subscriptions node="princely_musings"/>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 3 (c2s)'>
<iq type="result" id="subs2" to="all-xmpp-test@test-d/def-user-resource" from="pubsub.test-d" xmlns="jabber:client"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><subscriptions node="princely_musings"><subscription jid="bard@shakespeare.lit" subscription="subscribed"/><subscription jid="all-xmpp-test@test-d" subscription="subscribed"/></subscriptions></pubsub></iq>
</INPUT>

</test-history>