diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-09-17 15:18:54 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-09-17 15:18:54 +0100 |
commit | 521d25b79ecb32732cdd9d1a0808453e0bfd965d (patch) | |
tree | 63197c6409dac654c93a0cd2d5386b2f2b123249 | |
parent | db5cef1861060d85c17d0b29b639623a6d378e5a (diff) | |
download | prosody-521d25b79ecb32732cdd9d1a0808453e0bfd965d.tar.gz prosody-521d25b79ecb32732cdd9d1a0808453e0bfd965d.zip |
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
-rw-r--r-- | spec/scansion/muc_register.scs | 36 |
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: |