Comparison

spec/scansion/lastactivity.scs @ 10732:f5d88ad24b30

mod_lastactivity: Add basic scansion test coverage When run on Lua 5.3 produces an issue similar to #1536
author Kim Alvefur <zash@zash.se>
date Mon, 20 Apr 2020 18:33:05 +0200
comparison
equal deleted inserted replaced
10731:8e2f9d0fa72d 10732:f5d88ad24b30
1 # XEP-0012: Last Activity / mod_lastactivity
2
3 [Client] Romeo
4 jid: romeo@localhost
5 password: password
6
7 -----
8
9 Romeo connects
10
11 Romeo sends:
12 <presence>
13 <status>Hello</status>
14 </presence>
15
16 Romeo receives:
17 <presence from="${Romeo's full JID}">
18 <status>Hello</status>
19 </presence>
20
21 Romeo sends:
22 <presence type="unavailable">
23 <status>Goodbye</status>
24 </presence>
25
26 Romeo receives:
27 <presence from="${Romeo's full JID}" type="unavailable">
28 <status>Goodbye</status>
29 </presence>
30
31 # mod_lastlog saves time + status message from the last unavailable presence
32
33 Romeo sends:
34 <iq id='a' type='get'>
35 <query xmlns='jabber:iq:last'/>
36 </iq>
37
38 Romeo receives:
39 <iq type='result' id='a'>
40 <query xmlns='jabber:iq:last' seconds='0'>Goodbye</query>
41 </iq>
42
43 Romeo disconnects
44
45 # recording ended on 2020-04-20T14:39:47Z