mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
tests: Add scansion test for #689 about keeping the full subscription request stanza
This commit is contained in:
parent
b9beadc7c8
commit
e999fee5c3
1 changed files with 37 additions and 0 deletions
37
spec/scansion/keep_full_sub_req.scs
Normal file
37
spec/scansion/keep_full_sub_req.scs
Normal file
|
@ -0,0 +1,37 @@
|
|||
# server MUST keep a record of the complete presence stanza comprising the subscription request (#689)
|
||||
|
||||
[Client] Alice
|
||||
jid: pars-a@localhost
|
||||
password: password
|
||||
|
||||
[Client] Bob
|
||||
jid: pars-b@localhost
|
||||
password: password
|
||||
|
||||
---------
|
||||
|
||||
Alice connects
|
||||
|
||||
Alice sends:
|
||||
<presence to="${Bob's JID}" type="subscribe">
|
||||
<preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" />
|
||||
</presence>
|
||||
|
||||
Alice disconnects
|
||||
|
||||
Bob connects
|
||||
|
||||
Bob sends:
|
||||
<presence/>
|
||||
|
||||
Bob receives:
|
||||
<presence from="${Bob's full JID}"/>
|
||||
|
||||
|
||||
Bob receives:
|
||||
<presence from="${Alice's JID}">
|
||||
<preauth xmlns="urn:xmpp:pars:0" token="1tMFqYDdKhfe2pwp" />
|
||||
</presence>
|
||||
|
||||
Bob disconnects
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue