Software /
code /
prosody
Annotate
spec/scansion/keep_full_sub_req.scs @ 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 |
parent | 9668:6fbf8fa7ab8e |
child | 9670:73e1bdc001ce |
rev | line source |
---|---|
9667
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 # server MUST keep a record of the complete presence stanza comprising the subscription request (#689) |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 [Client] Alice |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 jid: pars-a@localhost |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 password: password |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 [Client] Bob |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
8 jid: pars-b@localhost |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 password: password |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
11 --------- |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 Alice connects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
14 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 Alice sends: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
16 <presence to="${Bob's JID}" type="subscribe"> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
17 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 </presence> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 Alice disconnects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
21 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 Bob connects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
23 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 Bob sends: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 <presence/> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 Bob receives: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 <presence from="${Bob's full JID}"/> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 |
9669
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
30 Bob receives: |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
31 <presence from="${Alice's JID}" type="subscribe"> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
32 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
33 </presence> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
34 |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
35 Bob disconnects |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
36 |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
37 # Works if they reconnect too |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
38 |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
39 Bob connects |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
40 |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
41 Bob sends: |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
42 <presence/> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
43 |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
44 Bob receives: |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
45 <presence from="${Bob's full JID}"/> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9668
diff
changeset
|
46 |
9667
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
47 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
48 Bob receives: |
9668
6fbf8fa7ab8e
spec/keep_full_sub_req: Add missing type attribute
Kim Alvefur <zash@zash.se>
parents:
9667
diff
changeset
|
49 <presence from="${Alice's JID}" type="subscribe"> |
9667
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
50 <preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" /> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 </presence> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
52 |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
53 Bob disconnects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 |