Annotate

spec/scansion/version.scs @ 13212:3e6e98cc63e9

core.moduleapi: Add min/max range support to :get_option_period To match :get_option_number etc, specifying the allowed interval. Default is essentially (0, inf].
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 00:37:44 +0200
parent 10729:dbce2b94a7eb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10729
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # XEP-0092: Software Version / mod_version
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 [Client] Romeo
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 password: password
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: romeo@localhost/dfaZpuxV
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 -----
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 Romeo connects
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 Romeo sends:
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 <iq id='lx2' to='localhost' type='get'>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 <query xmlns='jabber:iq:version'/>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 </iq>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 # Version string would vary so we can't do an exact match atm
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 # Inclusion of <os/> is disabled in the config, it should be absent
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 Romeo receives:
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 <iq id='lx2' from='localhost' type='result'>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <query xmlns='jabber:iq:version' scansion:strict='true'>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <name>Prosody</name>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 <version scansion:strict='false'/>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 </query>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 </iq>
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26
dbce2b94a7eb mod_version: Add scansion test
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 Romeo disconnects