Comparison

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
comparison
equal deleted inserted replaced
10847:42c8dce6e765 10848:7fd8976d47d7
1 # XEP-0157: Contact Addresses for XMPP Services
2 # mod_server_contact_info
3
4 [Client] Romeo
5 jid: romeo@localhost
6 password: password
7
8 -----
9
10 Romeo connects
11
12 Romeo sends:
13 <iq type='get' id='lx2' to='localhost'>
14 <query xmlns='http://jabber.org/protocol/disco#info'/>
15 </iq>
16
17 # Ignore other disco#info features, identities etc
18
19 Romeo receives:
20 <iq from='localhost' id='lx2' type='result'>
21 <query xmlns='http://jabber.org/protocol/disco#info' scansion:strict='false'>
22 <x xmlns='jabber:x:data' type='result'>
23 <field type='hidden' var='FORM_TYPE'>
24 <value>http://jabber.org/network/serverinfo</value>
25 </field>
26 <field type='list-multi' var='abuse-addresses'>
27 <value>mailto:abuse@localhost</value>
28 <value>xmpp:abuse@localhost</value>
29 </field>
30 <field type='list-multi' var='admin-addresses'>
31 <value>mailto:admin@localhost</value>
32 <value>xmpp:admin@localhost</value>
33 </field>
34 <field type='list-multi' var='feedback-addresses'>
35 <value>http://localhost/feedback.html</value>
36 <value>mailto:feedback@localhost</value>
37 <value>xmpp:feedback@localhost</value>
38 </field>
39 <field type='list-multi' var='sales-addresses'>
40 <value>xmpp:sales@localhost</value>
41 </field>
42 <field type='list-multi' var='security-addresses'>
43 <value>xmpp:security@localhost</value>
44 </field>
45 <field type='list-multi' var='support-addresses'>
46 <value>https://localhost/support.html</value>
47 <value>xmpp:support@localhost</value>
48 </field>
49 </x>
50 </query>
51 </iq>
52
53 Romeo disconnects