aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/keep_full_sub_req.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-30 23:58:55 +0100
committerKim Alvefur <zash@zash.se>2018-11-30 23:58:55 +0100
commit452611bf58da7b159ba69d3a36fa9624915eac57 (patch)
tree69942bcd2dc5c771f4ea84a1a175258025df5aeb /spec/scansion/keep_full_sub_req.scs
parent74a75a3fcc960b2b6ef502c31bfe0ec4ee51d178 (diff)
downloadprosody-452611bf58da7b159ba69d3a36fa9624915eac57.tar.gz
prosody-452611bf58da7b159ba69d3a36fa9624915eac57.zip
tests: Add scansion test for #689 about keeping the full subscription request stanza
Diffstat (limited to 'spec/scansion/keep_full_sub_req.scs')
-rw-r--r--spec/scansion/keep_full_sub_req.scs37
1 files changed, 37 insertions, 0 deletions
diff --git a/spec/scansion/keep_full_sub_req.scs b/spec/scansion/keep_full_sub_req.scs
new file mode 100644
index 00000000..318bbb60
--- /dev/null
+++ b/spec/scansion/keep_full_sub_req.scs
@@ -0,0 +1,37 @@
+# server MUST keep a record of the complete presence stanza comprising the subscription request (#689)
+
+[Client] Alice
+ jid: pars-a@localhost
+ password: password
+
+[Client] Bob
+ jid: pars-b@localhost
+ password: password
+
+---------
+
+Alice connects
+
+Alice sends:
+ <presence to="${Bob's JID}" type="subscribe">
+ <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" />
+ </presence>
+
+Alice disconnects
+
+Bob connects
+
+Bob sends:
+ <presence/>
+
+Bob receives:
+ <presence from="${Bob's full JID}"/>
+
+
+Bob receives:
+ <presence from="${Alice's JID}">
+ <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" />
+ </presence>
+
+Bob disconnects
+