Annotate

spec/scansion/server_contact_info.scs @ 11305:cd8516a77255

util.startup: Make installer_plugin_path relative to data directory Having it relative to current working directory is problematic since this depends on how Prosody was started and changes to the data directory during startup (but after this point).
author Kim Alvefur <zash@zash.se>
date Sun, 24 Jan 2021 16:12:53 +0100
parent 11010:6b27cb706b89
child 11583:4ee7a6a8753e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10848
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # XEP-0157: Contact Addresses for XMPP Services
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 # mod_server_contact_info
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 [Client] Romeo
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: romeo@localhost
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 password: password
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 -----
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 Romeo connects
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 Romeo sends:
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 <iq type='get' id='lx2' to='localhost'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 <query xmlns='http://jabber.org/protocol/disco#info'/>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 </iq>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 # Ignore other disco#info features, identities etc
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 Romeo receives:
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 <iq from='localhost' id='lx2' type='result'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 <query xmlns='http://jabber.org/protocol/disco#info' scansion:strict='false'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 <x xmlns='jabber:x:data' type='result'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 <field type='hidden' var='FORM_TYPE'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 <value>http://jabber.org/network/serverinfo</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 <field type='list-multi' var='abuse-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 <value>mailto:abuse@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 <value>xmpp:abuse@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 <field type='list-multi' var='admin-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 <value>mailto:admin@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 <value>xmpp:admin@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 <field type='list-multi' var='feedback-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <value>http://localhost/feedback.html</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 <value>mailto:feedback@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 <value>xmpp:feedback@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 <field type='list-multi' var='sales-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 <value>xmpp:sales@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 <field type='list-multi' var='security-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 <value>xmpp:security@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 </field>
11010
6b27cb706b89 mod_server_contact_info: Add status-addresses field
Kim Alvefur <zash@zash.se>
parents: 10848
diff changeset
45 <field type='list-multi' var='status-addresses'>
6b27cb706b89 mod_server_contact_info: Add status-addresses field
Kim Alvefur <zash@zash.se>
parents: 10848
diff changeset
46 <value>gopher://status.localhost</value>
6b27cb706b89 mod_server_contact_info: Add status-addresses field
Kim Alvefur <zash@zash.se>
parents: 10848
diff changeset
47 </field>
10848
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 <field type='list-multi' var='support-addresses'>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 <value>https://localhost/support.html</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 <value>xmpp:support@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 </x>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 </query>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 </iq>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56 Romeo disconnects