<test-history test='PubSub 2'>
<OUTPUT test='PubSub 2'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 2'>
<stream:stream xmlns="jabber:client" id="05892a31-ba01-4992-acf4-1057c59a8df3" xml:lang="en" from="test-d" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='PubSub 2'>
<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>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
</INPUT>
<OUTPUT test='PubSub 2'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='PubSub 2'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9ImtXL2ovWmFlZ1VNYzJtTk1rQ2JXQWNBSXlCK2dXM3NJM0EyK011T2MiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='PubSub 2'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9ImtXL2ovWmFlZ1VNYzJtTk1rQ2JXQWNBSXlCK2dXM3NJM0EyK011T2MiLG5jPTAwMDAwMDAxLGNub25jZT0iS1V5Mmt4TU1IZkNlbk9UdWpVZndNNTFvWUoxL2Y2WnJMaC9aZ3h5eCIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT03MGZkYzYyZTU3NWUxYmJlMmEwNmMwMzhlNTVmZjgwYyxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='PubSub 2'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD03MTU5M2M2ZmM0ODRlNjJlZDQzNmNlMDE2ZmM5NTI5Mw==</success>
</INPUT>
<OUTPUT test='PubSub 2'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 2'>
<stream:stream xmlns="jabber:client" id="05892a31-ba01-4992-acf4-1057c59a8df3" xml:lang="en" from="test-d" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='PubSub 2'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='PubSub 2'>
<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'>
<iq type="result" to="all-xmpp-test@test-d/def-user-resource" id="bind1"><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'>
<iq type="set" to="pubsub.test-d" id="create1" from="all-xmpp-test@test-d/def-user-resource">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="princely_musings"/><configure>
<x type="submit" xmlns="jabber:x:data">
<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'>
<iq type="result" to="all-xmpp-test@test-d/def-user-resource" id="create1" from="pubsub.test-d"><text>Created in 20 ms</text></iq>
</INPUT>

</test-history>