<test-history test='PubSub 2 (c2s)'>
<OUTPUT test='PubSub 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 2 (c2s)'>
<stream:stream xml:lang="en" xmlns="jabber:client" id="fa4f1c40-cdbc-4b06-b2b8-cc573a0b7331" version="1.0" from="test-d" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='PubSub 2 (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 2 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='PubSub 2 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='PubSub 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 2 (c2s)'>
<stream:stream xml:lang="en" xmlns="jabber:client" id="fa4f1c40-cdbc-4b06-b2b8-cc573a0b7331" version="1.0" from="test-d" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='PubSub 2 (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 2 (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 2 (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='PubSub 2 (c2s)'>
<iq type="set" id="create1" from="all-xmpp-test@test-d/def-user-resource" to="pubsub.test-d">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="princely_musings"/>
<configure>
<x xmlns="jabber:x:data" type="submit">
<field type="hidden" var="FORM_TYPE">
<value>http://jabber.org/protocol/pubsub#node_config</value>
</field>
<field var="pubsub#notify_sub_aff_state"><value>0</value></field>
</x>
</configure>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 2 (c2s)'>
<iq xmlns="jabber:client" type="result" id="create1" to="all-xmpp-test@test-d/def-user-resource" from="pubsub.test-d"><text>Created in 208 ms</text></iq>
</INPUT>

</test-history>