Changeset

9322:4ce972d77c53

scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Sep 2018 15:18:54 +0100
parents 9321:146dc1e4c7ff
children 9323:3259653512e7
files spec/scansion/muc_register.scs
diffstat 1 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/spec/scansion/muc_register.scs	Sat Sep 15 14:27:38 2018 +0200
+++ b/spec/scansion/muc_register.scs	Mon Sep 17 15:18:54 2018 +0100
@@ -413,6 +413,42 @@
 		</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: