<test-history test='PubSub 5 (c2s)'>
<OUTPUT test='PubSub 5 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 5 (c2s)'>
<stream:stream xml:lang="en" id="2b081f90-fe51-480b-9db3-ad761b4dc7db" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client"/>
</INPUT>
<INPUT test='PubSub 5 (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 5 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='PubSub 5 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='PubSub 5 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 5 (c2s)'>
<stream:stream xml:lang="en" id="2b081f90-fe51-480b-9db3-ad761b4dc7db" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" xmlns="jabber:client"/>
</INPUT>
<INPUT test='PubSub 5 (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 5 (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 5 (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='PubSub 5 (c2s)'>
<iq to="pubsub.test-d" id="coll1" type="set" from="all-xmpp-test@test-d/def-user-resource">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="A"/>
<configure>
<x type="submit" xmlns="jabber:x:data">
<field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/pubsub#node_config</value>
</field>
<field var="pubsub#node_type"><value>collection</value></field>
</x>
</configure>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 5 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="coll1" type="result" from="pubsub.test-d" xmlns="jabber:client"><text>Created in 31 ms</text></iq>
</INPUT>
<OUTPUT test='PubSub 5 (c2s)'>
<iq to="pubsub.test-d" id="coll2" type="set" from="all-xmpp-test@test-d/def-user-resource">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<create node="B"/>
<configure>
<x type="submit" xmlns="jabber:x:data">
<field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/pubsub#node_config</value>
</field>
<field var="pubsub#collection"><value>A</value></field>
</x>
</configure>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 5 (c2s)'>
<message to="all-xmpp-test@test-d" id="1" from="pubsub.test-d" xmlns="jabber:client"><event xmlns="http://jabber.org/protocol/pubsub#event"><collection node="A"><associate node="B"/></collection></event></message>
</INPUT>
<INPUT test='PubSub 5 (c2s)'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="coll2" type="result" from="pubsub.test-d" xmlns="jabber:client"><text>Created in 15 ms</text></iq>
</INPUT>

</test-history>