spec/scansion/muc_register.scs
changeset 9325 4ce972d77c53
parent 9318 a47bba3b35f3
child 9605 b9854605938d
equal deleted inserted replaced
9324:146dc1e4c7ff 9325:4ce972d77c53
   411 		<x xmlns='http://jabber.org/protocol/muc#user'>
   411 		<x xmlns='http://jabber.org/protocol/muc#user'>
   412 			<item jid="${Rosaline's full JID}" affiliation='none' role='participant'/>
   412 			<item jid="${Rosaline's full JID}" affiliation='none' role='participant'/>
   413 		</x>
   413 		</x>
   414 	</presence>
   414 	</presence>
   415 
   415 
       
   416 # Rosaline tries to register her own nickname, but unaffiliated
       
   417 # registration is disabled by default
       
   418 
       
   419 Rosaline sends:
       
   420 	<iq id='reg990' to='room@conference.localhost' type='get'>
       
   421 		<query xmlns='jabber:iq:register'/>
       
   422 	</iq>
       
   423 
       
   424 Rosaline receives:
       
   425 	<iq type='error' from='room@conference.localhost' id='reg990'>
       
   426 		<error type='auth'>
       
   427 			<registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
       
   428 		</error>
       
   429 	</iq>
       
   430 
       
   431 Rosaline sends:
       
   432 	<iq id='reg991' to='room@conference.localhost' type='set'>
       
   433 		<query xmlns='jabber:iq:register'>
       
   434 			<x xmlns='jabber:x:data' type='submit'>
       
   435 				<field var='FORM_TYPE'>
       
   436 					<value>http://jabber.org/protocol/muc#register</value>
       
   437 				</field>
       
   438 				<field var='muc#register_roomnick'>
       
   439 					<value>Romeo</value>
       
   440 				</field>
       
   441 			</x>
       
   442 		</query>
       
   443 	</iq>
       
   444 
       
   445 Rosaline receives:
       
   446 	<iq id='reg991' type='error'>
       
   447 		<error type='auth'>
       
   448 			<registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
       
   449 		</error>
       
   450 	</iq>
       
   451 
   416 # Romeo reserves her nickname for her
   452 # Romeo reserves her nickname for her
   417 
   453 
   418 Romeo sends:
   454 Romeo sends:
   419 	<iq id='member2' to='room@conference.localhost' type='set'>
   455 	<iq id='member2' to='room@conference.localhost' type='set'>
   420 		<query xmlns='http://jabber.org/protocol/muc#admin'>
   456 		<query xmlns='http://jabber.org/protocol/muc#admin'>