Add test for instant MUC rooms

Sat, 12 Mar 2016 19:52:31 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 12 Mar 2016 19:52:31 +0100
changeset 85
c928e514aa95
parent 84
c9061cd9951b
child 86
3c64919a50f9

Add test for instant MUC rooms

scripts/muc_instant_rooms.scs file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/muc_instant_rooms.scs	Sat Mar 12 19:52:31 2016 +0100
@@ -0,0 +1,45 @@
+# Test for instant room creation
+# http://xmpp.org/extensions/xep-0045.html#createroom-instant
+# https://prosody.im/issues/issue/377
+
+[Client] Crone
+	jid: crone1@shakespeare.lit/desktop
+	password: iwillnevertell
+
+# [Muc Room] 
+# jid: 
+------------
+
+Crone connects
+
+Crone sends:
+	<presence to="coven@chat.shakespeare.lit/firstwitch">
+		<x xmlns="http://jabber.org/protocol/muc"/>
+	</presence>
+
+Crone receives:
+	<presence from="coven@chat.shakespeare.lit/firstwitch">
+		<x xmlns="http://jabber.org/protocol/muc#user">
+			<item affiliation="owner" role="moderator"/>
+			<status code="110"/>
+			<status code="201"/>
+		</x>
+	</presence>
+
+// NOTE: May receive (empty) room subject here
+
+// TODO Have another client try joining the room, it should fail.
+
+Crone sends:
+	<iq type="set" id="instant" to="coven@chat.shakespeare.lit">
+		<query xmlns="http://jabber.org/protocol/muc#owner">
+			<x xmlns="jabber:x:data" type="submit"/>
+		</query>
+	</iq>
+
+Crone receives:
+	<iq type="result" id="instant" from="coven@chat.shakespeare.lit"/>
+
+// TODO Have another client try joining the room, it should succeed now.
+
+// vim: syntax=xml

mercurial