Software /
code /
prosody
Annotate
spec/scansion/lastactivity.scs @ 12950:2cb5994e3f94
mod_auth_internal_plain: Fix user creation done via mod_admin_shell
Following the new behavior in auth_internal_hashed (c8f59ce7d3cf), the account
will be created and disabled, instead of returning an error telling password
being nil when calling saslprep().
Note that mod_auth_internal_plain does not have full support for
enabled/disabled accounts, but that may be fixed in subsequent commits.
author | Vitaly Orekhov <vkvo2000@vivaldi.net> |
---|---|
date | Tue, 21 Mar 2023 01:46:47 +0300 |
parent | 10732:f5d88ad24b30 |
rev | line source |
---|---|
10732
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 # XEP-0012: Last Activity / mod_lastactivity |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 [Client] Romeo |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 jid: romeo@localhost |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 password: password |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 ----- |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
8 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 Romeo connects |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
11 Romeo sends: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 <presence> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 <status>Hello</status> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
14 </presence> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
15 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
16 Romeo receives: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
17 <presence from="${Romeo's full JID}"> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
18 <status>Hello</status> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
19 </presence> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
21 Romeo sends: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 <presence type="unavailable"> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
23 <status>Goodbye</status> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
24 </presence> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
25 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
26 Romeo receives: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
27 <presence from="${Romeo's full JID}" type="unavailable"> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
28 <status>Goodbye</status> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
29 </presence> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
30 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
31 # mod_lastlog saves time + status message from the last unavailable presence |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
32 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
33 Romeo sends: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
34 <iq id='a' type='get'> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
35 <query xmlns='jabber:iq:last'/> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
36 </iq> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
37 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
38 Romeo receives: |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
39 <iq type='result' id='a'> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
40 <query xmlns='jabber:iq:last' seconds='0'>Goodbye</query> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
41 </iq> |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
42 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
43 Romeo disconnects |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
44 |
f5d88ad24b30
mod_lastactivity: Add basic scansion test coverage
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
45 # recording ended on 2020-04-20T14:39:47Z |