Annotate

spec/scansion/server_contact_info.scs @ 10848:7fd8976d47d7

scansion: Add test for mod_server_contact_info / XEP-0157
author Kim Alvefur <zash@zash.se>
date Wed, 27 May 2020 19:44:12 +0200
child 11010:6b27cb706b89
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>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 <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
46 <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
47 <value>xmpp:support@localhost</value>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 </field>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49 </x>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 </query>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51 </iq>
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52
7fd8976d47d7 scansion: Add test for mod_server_contact_info / XEP-0157
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 Romeo disconnects