Changeset

9669:8c3ef65ecb40

spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
author Kim Alvefur <zash@zash.se>
date Sat, 01 Dec 2018 18:07:56 +0100
parents 9668:6fbf8fa7ab8e
children 9670:73e1bdc001ce
files spec/scansion/keep_full_sub_req.scs
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/spec/scansion/keep_full_sub_req.scs	Sat Dec 01 18:02:58 2018 +0100
+++ b/spec/scansion/keep_full_sub_req.scs	Sat Dec 01 18:07:56 2018 +0100
@@ -27,6 +27,23 @@
 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">