aboutsummaryrefslogtreecommitdiffstats
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
commite999fee5c39278f767f7f508a2c0c964ec964cd1 (patch)
tree69942bcd2dc5c771f4ea84a1a175258025df5aeb
parentb9beadc7c8d795c629cbf2239f50be7dfc165a4c (diff)
downloadprosody-e999fee5c39278f767f7f508a2c0c964ec964cd1.tar.gz
prosody-e999fee5c39278f767f7f508a2c0c964ec964cd1.zip
tests: Add scansion test for #689 about keeping the full subscription request stanza
-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
+