aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-13 16:18:59 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-13 16:18:59 +0100
commit1b350237418d21d46d3874d7f07e710753881e8e (patch)
tree3f2912821f7c0655df3c76e909e6fa9d4fa6fae1 /spec/scansion
parent5bf9e2cd57125aeb7bfff66ec539ce790d90ebeb (diff)
downloadprosody-1b350237418d21d46d3874d7f07e710753881e8e.tar.gz
prosody-1b350237418d21d46d3874d7f07e710753881e8e.zip
spec/scansion/basic_roster.scs: Add tests for actually modifying the roster
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/basic_roster.scs48
1 files changed, 40 insertions, 8 deletions
diff --git a/spec/scansion/basic_roster.scs b/spec/scansion/basic_roster.scs
index 9cd8a2ca..2e292083 100644
--- a/spec/scansion/basic_roster.scs
+++ b/spec/scansion/basic_roster.scs
@@ -30,12 +30,44 @@ Romeo receives:
<query ver='{scansion:any}' xmlns="jabber:iq:roster"/>
</iq>
-Romeo disconnects
+# 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>
-#Juliet receives:
-# <presence from="${Romeo's full JID}" />
-#
-#Juliet receives:
-# <presence from="${Romeo's full JID}" type="unavailable" />
-#
-#Juliet disconnects
+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