aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-08-29 23:26:19 +0200
committerKim Alvefur <zash@zash.se>2021-08-29 23:26:19 +0200
commitd915f98800f1740242a56b0c29b129a686fe1c9d (patch)
tree8750b06162997804d57d87624d8927db5b93e5e9 /spec/scansion
parent4ddf47aaf0ec7783cb69475000c8f09dd651d678 (diff)
downloadprosody-d915f98800f1740242a56b0c29b129a686fe1c9d.tar.gz
prosody-d915f98800f1740242a56b0c29b129a686fe1c9d.zip
mod_external_services: Validate required attributes on credentials requests
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/extdisco.scs14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/scansion/extdisco.scs b/spec/scansion/extdisco.scs
index fd73c9da..f0781dc5 100644
--- a/spec/scansion/extdisco.scs
+++ b/spec/scansion/extdisco.scs
@@ -52,6 +52,20 @@ Romeo receives:
</credentials>
</iq>
+Romeo sends:
+ <iq type='get' xml:lang='sv' id='lx5' to='localhost'>
+ <credentials xmlns='urn:xmpp:extdisco:2'>
+ <service host='default.example' />
+ </credentials>
+ </iq>
+
+Romeo receives:
+ <iq type='error' id='lx5' from='localhost'>
+ <error type='modify'>
+ <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
+ </error>
+ </iq>
+
Romeo disconnects
# recording ended on 2020-07-18T16:47:57Z