util.encodings: Spell out all IDNA 2008 options ICU has
[prosody.git] / spec / scansion / muc_mediated_invite.scs
blob340aefc7afff83ecc33c5da1e77458735c788776
1 # MUC: Mediated invites
3 [Client] Romeo
4         jid: user@localhost
5         password: password
7 [Client] Juliet
8         jid: user2@localhost
9         password: password
11 -----
13 Romeo connects
15 Romeo sends:
16         <presence to="room@conference.localhost/Romeo">
17                 <x xmlns="http://jabber.org/protocol/muc"/>
18         </presence>
20 Romeo receives:
21         <presence from='room@conference.localhost/Romeo'>
22                 <x xmlns='http://jabber.org/protocol/muc#user'>
23                         <status code='201'/>
24                         <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
25                         <status code='110'/>
26                 </x>
27         </presence>
29 Romeo receives:
30         <message type='groupchat' from='room@conference.localhost'><subject/></message>
32 # Submit config form
33 Romeo sends:
34         <iq id='config1' to='room@conference.localhost' type='set'>
35                 <query xmlns='http://jabber.org/protocol/muc#owner'>
36                         <x xmlns='jabber:x:data' type='submit'>
37                                 <field var='FORM_TYPE'>
38                                         <value>http://jabber.org/protocol/muc#roomconfig</value>
39                                 </field>
40                         </x>
41                 </query>
42         </iq>
44 Romeo receives:
45         <iq id="config1" from="room@conference.localhost" type="result">
46         </iq>
48 # Juliet connects
49 Juliet connects
51 Juliet sends:
52         <presence/>
54 Juliet receives:
55         <presence/>
58 # Romeo invites Juliet to join the room
60 Romeo sends:
61         <message to="room@conference.localhost" id="invite1">
62                 <x xmlns="http://jabber.org/protocol/muc#user">
63                         <invite to="${Juliet's JID}" />
64                 </x>
65         </message>
67 Juliet receives:
68         <message from="room@conference.localhost" id="invite1">
69                 <x xmlns="http://jabber.org/protocol/muc#user">
70                         <invite from="room@conference.localhost/Romeo">
71                                 <reason/>
72                         </invite>
73                 </x>
74                 <body>room@conference.localhost/Romeo invited you to the room room@conference.localhost</body>
75                 <x xmlns="jabber:x:conference" jid="room@conference.localhost"/>
76         </message>