<test-history test='User Status 2 (c2s)'>
<OUTPUT test='User Status 2 (c2s)'>
<stream:stream xmlns='jabber:component:accept' xmlns:stream='http://etherx.jabber.org/streams' to='test.test-d'> 
</OUTPUT>
<INPUT test='User Status 2 (c2s)'>
<stream:stream xmlns="jabber:component:accept" xmlns:stream="http://etherx.jabber.org/streams" from="test.test-d" id="cdcb0ea6-a019-498c-b6ef-bfea96d7af17"/>
</INPUT>
<OUTPUT test='User Status 2 (c2s)'>
<handshake>8e4f1fdb3ca9eca99cda0c0c41cfb05f93c510df</handshake>
</OUTPUT>
<INPUT test='User Status 2 (c2s)'>
<handshake/>
</INPUT>
<OUTPUT test='User Status 2 (c2s)'>
<iq to="test-d" from="all-xmpp-test@test.test-d" id="555" type="set">
<command xmlns="http://jabber.org/protocol/commands" node="USER_STATUS">
<x xmlns="jabber:x:data" type="submit">
<field var="jid">
<value>admin@test-d/def-user-resource</value>
</field>
<field var="available">
<value>true</value>
</field>
</x>
</command>
</iq>
</OUTPUT>
<INPUT test='User Status 2 (c2s)'>
<iq to="all-xmpp-test@test.test-d" from="test-d" id="555" type="error"><command xmlns="http://jabber.org/protocol/commands" node="USER_STATUS">
<x xmlns="jabber:x:data" type="submit">
<field var="jid">
<value>admin@test-d/def-user-resource</value>
</field>
<field var="available">
<value>true</value>
</field>
</x>
</command><error code="403" type="auth"><forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Only trusted entity can do it.</text></error></iq>
</INPUT>

</test-history>