# HG changeset patch # User Kim Alvefur # Date 1590601452 -7200 # Node ID 7fd8976d47d7a1865aad37a7eecb3a71c7486dc0 # Parent 42c8dce6e765001120a4abb2b63c47eb6b523a58 scansion: Add test for mod_server_contact_info / XEP-0157 diff -r 42c8dce6e765 -r 7fd8976d47d7 spec/scansion/prosody.cfg.lua --- a/spec/scansion/prosody.cfg.lua Fri May 22 15:36:03 2020 +0200 +++ b/spec/scansion/prosody.cfg.lua Wed May 27 19:44:12 2020 +0200 @@ -52,7 +52,7 @@ -- Other specific functionality --"limits"; -- Enable bandwidth limiting for XMPP connections --"groups"; -- Shared roster support - --"server_contact_info"; -- Publish contact information for this service + "server_contact_info"; -- Publish contact information for this service --"announce"; -- Send announcement to all online users --"welcome"; -- Welcome users who register accounts --"watchregistrations"; -- Alert admins of registrations @@ -65,6 +65,15 @@ --"scansion_record"; -- Records things that happen in scansion test case format } +contact_info = { + abuse = { "mailto:abuse@localhost", "xmpp:abuse@localhost" }; + admin = { "mailto:admin@localhost", "xmpp:admin@localhost" }; + feedback = { "http://localhost/feedback.html", "mailto:feedback@localhost", "xmpp:feedback@localhost" }; + sales = { "xmpp:sales@localhost" }; + security = { "xmpp:security@localhost" }; + support = { "https://localhost/support.html", "xmpp:support@localhost" }; +} + modules_disabled = { "s2s"; } diff -r 42c8dce6e765 -r 7fd8976d47d7 spec/scansion/server_contact_info.scs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spec/scansion/server_contact_info.scs Wed May 27 19:44:12 2020 +0200 @@ -0,0 +1,53 @@ +# XEP-0157: Contact Addresses for XMPP Services +# mod_server_contact_info + +[Client] Romeo + jid: romeo@localhost + password: password + +----- + +Romeo connects + +Romeo sends: + + + + +# Ignore other disco#info features, identities etc + +Romeo receives: + + + + + http://jabber.org/network/serverinfo + + + mailto:abuse@localhost + xmpp:abuse@localhost + + + mailto:admin@localhost + xmpp:admin@localhost + + + http://localhost/feedback.html + mailto:feedback@localhost + xmpp:feedback@localhost + + + xmpp:sales@localhost + + + xmpp:security@localhost + + + https://localhost/support.html + xmpp:support@localhost + + + + + +Romeo disconnects