IMPORTANT: due to a drive failure, as of 13-Mar-2021, the Mercurial repository had to be re-mirrored, which changed every commit SHA. The old SHAs and trees are backed up in the vault branches. Please migrate to the new branches as soon as you can.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
prosody/spec/scansion/basic_roster.scs

73 lines
1.3 KiB

# Basic roster test
[Client] Romeo
jid: user@localhost
password: password
[Client] Juliet
jid: juliet@localhost
password: password
---------
Romeo connects
Juliet connects
Romeo sends:
<presence/>
Romeo receives:
<presence from="${Romeo's full JID}" />
Romeo sends:
<iq type="get" id="roster1">
<query xmlns='jabber:iq:roster'/>
</iq>
Romeo receives:
<iq type="result" id="roster1">
<query ver='{scansion:any}' xmlns="jabber:iq:roster"/>
</iq>
# Add nurse to roster
Romeo sends:
<iq type="set" id="roster2">
<query xmlns="jabber:iq:roster">
<item jid='nurse@localhost'/>
</query>
</iq>
# Receive the roster add result
Romeo receives:
<iq type="result" id="roster2"/>
# Receive the roster push
Romeo receives:
<iq type="set" id="{scansion:any}">
<query xmlns='jabber:iq:roster' ver='{scansion:any}'>
<item jid='nurse@localhost' subscription='none'/>
</query>
</iq>
Romeo sends:
<iq type="result" id="fixme"/>
# Fetch the roster, it should include nurse now
Romeo sends:
<iq type="get" id="roster3">
<query xmlns='jabber:iq:roster'/>
</iq>
Romeo receives:
<iq type="result" id="roster3">
<query xmlns='jabber:iq:roster' ver="{scansion:any}">
<item subscription='none' jid='nurse@localhost'/>
</query>
</iq>
Romeo disconnects