util.encodings: Spell out all IDNA 2008 options ICU has
[prosody.git] / spec / scansion / issue978-multi.scs
blobd8f99228951a48bc2e9004690490cfe96ae07af2
1 # Issue 978: MUC does not carry error into occupant leave status (multiple clients)
3 [Client] Romeo
4         jid: user@localhost
5         password: password
7 [Client] Juliet
8         jid: user2@localhost
9         password: password
11 [Client] Juliet's phone
12         jid: user2@localhost
13         password: password
15 -----
17 Romeo connects
19 Romeo sends:
20         <presence to="room@conference.localhost/Romeo">
21                 <x xmlns="http://jabber.org/protocol/muc"/>
22         </presence>
24 Romeo receives:
25         <presence from='room@conference.localhost/Romeo'>
26                 <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='false'>
27                         <status code='201'/>
28                         <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
29                         <status code='110'/>
30                 </x>
31         </presence>
33 Romeo receives:
34         <message type='groupchat' from='room@conference.localhost'><subject/></message>
36 # Submit config form
37 Romeo sends:
38         <iq id='config1' to='room@conference.localhost' type='set'>
39                 <query xmlns='http://jabber.org/protocol/muc#owner'>
40                         <x xmlns='jabber:x:data' type='submit'>
41                                 <field var='FORM_TYPE'>
42                                         <value>http://jabber.org/protocol/muc#roomconfig</value>
43                                 </field>
44                         </x>
45                 </query>
46         </iq>
48 Romeo receives:
49         <iq id="config1" from="room@conference.localhost" type="result">
50         </iq>
52 # Juliet connects, and joins the room
53 Juliet connects
55 Juliet sends:
56         <presence to="room@conference.localhost/Juliet">
57                 <x xmlns="http://jabber.org/protocol/muc"/>
58         </presence>
60 Juliet receives:
61         <presence from="room@conference.localhost/Romeo" />
63 Juliet receives:
64         <presence from="room@conference.localhost/Juliet" />
66 Juliet receives:
67         <message type='groupchat' from='room@conference.localhost'><subject/></message>
69 Romeo receives:
70         <presence from="room@conference.localhost/Juliet" />
72 # Juliet's phone connects, and joins the room
73 Juliet's phone connects
75 Juliet's phone sends:
76         <presence to="room@conference.localhost/Juliet">
77                 <x xmlns="http://jabber.org/protocol/muc"/>
78         </presence>
80 Juliet's phone receives:
81         <presence from="room@conference.localhost/Romeo" />
83 Juliet's phone receives:
84         <presence from="room@conference.localhost/Juliet" />
86 Juliet's phone receives:
87         <message type='groupchat' from='room@conference.localhost'><subject/></message>
89 Romeo receives:
90         <presence from='room@conference.localhost/Juliet'>
91                 <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='false'>
92                         <item affiliation='none' jid="${Juliet's phone's full JID}" role='participant'/>
93                         <item affiliation='none' jid="${Juliet's full JID}" role='participant'/>
94                 </x>
95         </presence>
97 # Juliet leaves with an error
98 Juliet sends:
99         <presence type='error' to='room@conference.localhost'>
100                 <error type='cancel'>
101                         <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
102                         <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Test error</text>
103                 </error>
104         </presence>
106 Romeo receives:
107         <presence from='room@conference.localhost/Juliet'>
108                 <x xmlns='http://jabber.org/protocol/muc#user'>
109                         <item jid="${Juliet's phone's full JID}" affiliation='none' role='participant'/>
110                 </x>
111         </presence>