author | Kim Alvefur <zash@zash.se> |
Wed, 27 Mar 2024 19:33:11 +0100 | |
changeset 13471 | c2a476f4712a |
parent 10519 | 35bf3b80480f |
permissions | -rw-r--r-- |
9671
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 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
11 |
[Client] Bob's phone |
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
12 |
jid: pars-b@localhost/phone |
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
13 |
password: password |
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
14 |
|
9671
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 |
--------- |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
16 |
|
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
17 |
Alice connects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 |
|
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 |
Alice sends: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 |
<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
|
21 |
<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
|
22 |
</presence> |
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 |
Alice disconnects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 |
|
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 |
Bob connects |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 |
|
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 |
Bob sends: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 |
<presence/> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
30 |
|
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 |
Bob receives: |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 |
<presence from="${Bob's full JID}"/> |
10519
35bf3b80480f
scansion: Trim trailing whitespace in tests
Kim Alvefur <zash@zash.se>
parents:
9674
diff
changeset
|
33 |
|
9673
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
diff
changeset
|
34 |
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:
9672
diff
changeset
|
35 |
<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:
9672
diff
changeset
|
36 |
<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:
9672
diff
changeset
|
37 |
</presence> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
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:
9672
diff
changeset
|
39 |
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:
9672
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:
9672
diff
changeset
|
41 |
# 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:
9672
diff
changeset
|
42 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
43 |
Bob's phone connects |
9673
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
diff
changeset
|
44 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
45 |
Bob's phone sends: |
9673
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
diff
changeset
|
46 |
<presence/> |
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
diff
changeset
|
47 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
48 |
Bob's phone receives: |
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
49 |
<presence from="${Bob's phone's full JID}"/> |
9673
8c3ef65ecb40
spec/keep_full_sub_req: Verify that the presence subscription stays the same after a reconnect
Kim Alvefur <zash@zash.se>
parents:
9672
diff
changeset
|
50 |
|
9671
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
51 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
52 |
Bob's phone receives: |
9672
6fbf8fa7ab8e
spec/keep_full_sub_req: Add missing type attribute
Kim Alvefur <zash@zash.se>
parents:
9671
diff
changeset
|
53 |
<presence from="${Alice's JID}" type="subscribe"> |
9671
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
54 |
<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
|
55 |
</presence> |
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
56 |
|
9674
73e1bdc001ce
spec/keep_full_sub_req: Make the second connect a differenct device (workaround for scansion issue)
Kim Alvefur <zash@zash.se>
parents:
9673
diff
changeset
|
57 |
Bob's phone disconnects |
9671
e41d8b12cb47
tests: Add scansion test for #689 about keeping the full subscription request stanza
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
58 |