aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/uptime.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-20 19:22:54 +0200
committerKim Alvefur <zash@zash.se>2020-04-20 19:22:54 +0200
commit85b09097dc5367e4223595c7debbb92a401cfd12 (patch)
treefbfb917ede375f4da2e8033a34962a456493de19 /spec/scansion/uptime.scs
parent5955cc392426300b07c9cbfdb80371a14de6b729 (diff)
downloadprosody-85b09097dc5367e4223595c7debbb92a401cfd12.tar.gz
prosody-85b09097dc5367e4223595c7debbb92a401cfd12.zip
mod_uptime: Add scansion test coverage
Once the Prosody is up, who cares when it comes down? That's not my department, says scanison.
Diffstat (limited to 'spec/scansion/uptime.scs')
-rw-r--r--spec/scansion/uptime.scs21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/scansion/uptime.scs b/spec/scansion/uptime.scs
new file mode 100644
index 00000000..188b9eb5
--- /dev/null
+++ b/spec/scansion/uptime.scs
@@ -0,0 +1,21 @@
+# XEP-0012: Last Activity / mod_uptime
+
+[Client] Romeo
+ jid: romeo@localhost
+ password: password
+
+-----
+
+Romeo connects
+
+Romeo sends:
+ <iq id='a' type='get' to='localhost'>
+ <query xmlns='jabber:iq:last'/>
+ </iq>
+
+Romeo receives:
+ <iq type='result' id='a' from='localhost'>
+ <query xmlns='jabber:iq:last' seconds='0'/>
+ </iq>
+
+Romeo disconnects