<test-history test='Basic 20 (c2s)'>
<OUTPUT test='Basic 20 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" xmlns="jabber:client" from="test-d" id="f9f1f056-bbd0-4e4e-9469-21050237a804" version="1.0"/>
</INPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><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 20 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Basic 20 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" xmlns="jabber:client" from="test-d" id="f9f1f056-bbd0-4e4e-9469-21050237a804" version="1.0"/>
</INPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><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"/></stream:features>
</INPUT>
<OUTPUT test='Basic 20 (c2s)'>
<message to="admin@test-d/def-user-resource" type="chat" id="1">
<body>Test message no without resource bind.</body>
</message>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<message xmlns="jabber:client" from="admin@test-d/def-user-resource" type="error" id="1"><body>Test message no without resource bind.</body><error code="401" type="auth"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You must bind the resource first: http://www.xmpp.org/rfcs/rfc3920.html#bind</text></error></message>
</INPUT>

</test-history>