aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-17 15:18:54 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-17 15:18:54 +0100
commitc3809bebd237d2ac2e9d1f1eca6a674e9fa7c411 (patch)
tree63197c6409dac654c93a0cd2d5386b2f2b123249 /spec/scansion
parent44b031c20742c79879ef172d5cd23c93fd5d53b1 (diff)
downloadprosody-c3809bebd237d2ac2e9d1f1eca6a674e9fa7c411.tar.gz
prosody-c3809bebd237d2ac2e9d1f1eca6a674e9fa7c411.zip
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Diffstat (limited to 'spec/scansion')
-rw-r--r--spec/scansion/muc_register.scs36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/scansion/muc_register.scs b/spec/scansion/muc_register.scs
index a97a10df..1cd8e36e 100644
--- a/spec/scansion/muc_register.scs
+++ b/spec/scansion/muc_register.scs
@@ -413,6 +413,42 @@ Romeo receives:
</x>
</presence>
+# Rosaline tries to register her own nickname, but unaffiliated
+# registration is disabled by default
+
+Rosaline sends:
+ <iq id='reg990' to='room@conference.localhost' type='get'>
+ <query xmlns='jabber:iq:register'/>
+ </iq>
+
+Rosaline receives:
+ <iq type='error' from='room@conference.localhost' id='reg990'>
+ <error type='auth'>
+ <registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
+ </error>
+ </iq>
+
+Rosaline sends:
+ <iq id='reg991' to='room@conference.localhost' type='set'>
+ <query xmlns='jabber:iq:register'>
+ <x xmlns='jabber:x:data' type='submit'>
+ <field var='FORM_TYPE'>
+ <value>http://jabber.org/protocol/muc#register</value>
+ </field>
+ <field var='muc#register_roomnick'>
+ <value>Romeo</value>
+ </field>
+ </x>
+ </query>
+ </iq>
+
+Rosaline receives:
+ <iq id='reg991' type='error'>
+ <error type='auth'>
+ <registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
+ </error>
+ </iq>
+
# Romeo reserves her nickname for her
Romeo sends: