aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-01 18:07:56 +0100
committerKim Alvefur <zash@zash.se>2018-12-01 18:07:56 +0100
commit8aac387431c7dad47c6afffc4bfcc024d3147950 (patch)
tree52165d24b9e2d44bf5d3de1d15736f7fb781b6c2
parent296555762ed5a515998d4b85d6d7fd4d9bfb62e5 (diff)
downloadprosody-8aac387431c7dad47c6afffc4bfcc024d3147950.tar.gz
prosody-8aac387431c7dad47c6afffc4bfcc024d3147950.zip
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
-rw-r--r--spec/scansion/keep_full_sub_req.scs17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/scansion/keep_full_sub_req.scs b/spec/scansion/keep_full_sub_req.scs
index 3b80b8b2..5a5e1fdf 100644
--- a/spec/scansion/keep_full_sub_req.scs
+++ b/spec/scansion/keep_full_sub_req.scs
@@ -27,6 +27,23 @@ Bob sends:
Bob receives:
<presence from="${Bob's full JID}"/>
+Bob receives:
+ <presence from="${Alice's JID}" type="subscribe">
+ <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" />
+ </presence>
+
+Bob disconnects
+
+# Works if they reconnect too
+
+Bob connects
+
+Bob sends:
+ <presence/>
+
+Bob receives:
+ <presence from="${Bob's full JID}"/>
+
Bob receives:
<presence from="${Alice's JID}" type="subscribe">