aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-10-31 14:19:01 +0000
committerMatthew Wild <mwild1@gmail.com>2018-10-31 14:19:01 +0000
commit3841c64a8f72af65c056217c771d38cb601d7a17 (patch)
treedb422e36ea8881c539b5a09a403b968c72459f37
parent9a69512d819d05bd96987ac95b5f88517d3f6e7d (diff)
downloadprosody-3841c64a8f72af65c056217c771d38cb601d7a17.tar.gz
prosody-3841c64a8f72af65c056217c771d38cb601d7a17.zip
muc_register.scs: Fix to expect new affiliation change notifications
-rw-r--r--spec/scansion/muc_register.scs25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/scansion/muc_register.scs b/spec/scansion/muc_register.scs
index 1cd8e36e..98af33f1 100644
--- a/spec/scansion/muc_register.scs
+++ b/spec/scansion/muc_register.scs
@@ -57,6 +57,13 @@ Romeo sends:
</iq>
Romeo receives:
+ <message from='room@conference.localhost'>
+ <x xmlns='http://jabber.org/protocol/muc#user'>
+ <item jid="${Juliet's JID}" affiliation='member' />
+ </x>
+ </message>
+
+Romeo receives:
<iq from='room@conference.localhost' id='member1' type='result'/>
# Juliet connects, and joins the room
@@ -186,6 +193,15 @@ Juliet sends:
Juliet receives:
<iq type='result' from='room@conference.localhost' id='unreg1'/>
+# Romeo is notified of Juliet's sad decision
+
+Romeo receives:
+ <message from='room@conference.localhost'>
+ <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='true'>
+ <item jid="${Juliet's JID}" />
+ </x>
+ </message>
+
# Rosaline attempts once more to sneak into the room, disguised as Juliet
Rosaline sends:
@@ -236,6 +252,15 @@ Romeo receives:
</x>
</presence>
+# An out-of-room affiliation change is received for Juliet
+
+Romeo receives:
+ <message from='room@conference.localhost'>
+ <x xmlns='http://jabber.org/protocol/muc#user'>
+ <item jid="${Juliet's JID}" affiliation='member' />
+ </x>
+ </message>
+
Romeo receives:
<iq type='result' id='member1' from='room@conference.localhost' />