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
commit5adc46bde533b5ce92029eb33b2ddc2899dbd737 (patch)
tree52165d24b9e2d44bf5d3de1d15736f7fb781b6c2
parent5dff3b198343a7804811126efa30bedaad092d93 (diff)
downloadprosody-5adc46bde533b5ce92029eb33b2ddc2899dbd737.tar.gz
prosody-5adc46bde533b5ce92029eb33b2ddc2899dbd737.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">