Software /
code /
prosody
Comparison
spec/scansion/muc_create_destroy.scs @ 11120:b2331f3dfeea
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 09:50:33 +0100 |
parent | 10941:642773f3073b |
comparison
equal
deleted
inserted
replaced
11119:68df52bf08d5 | 11120:b2331f3dfeea |
---|---|
1 # MUC creation, basic messages and destruction | |
2 | |
3 [Client] Romeo | |
4 jid: romeo@localhost/mK0dD6Ha | |
5 password: password | |
6 | |
7 [Client] Juliet | |
8 jid: juliet@localhost/lVwkim_k | |
9 password: password | |
10 | |
11 [Client] Admin | |
12 jid: admin@localhost/DfNgg9VE | |
13 password: password | |
14 | |
15 ----- | |
16 | |
17 Romeo connects | |
18 | |
19 Romeo sends: | |
20 <presence to="garden@conference.localhost/romeo"> | |
21 <x xmlns="http://jabber.org/protocol/muc"/> | |
22 </presence> | |
23 | |
24 Romeo receives: | |
25 <presence from="garden@conference.localhost/romeo"> | |
26 <x xmlns="vcard-temp:x:update"> | |
27 <photo/> | |
28 </x> | |
29 <x xmlns="http://jabber.org/protocol/muc#user"> | |
30 <status code="201"/> | |
31 <item affiliation="owner" jid="${Romeo's full JID}" role="moderator"/> | |
32 <status code="110"/> | |
33 </x> | |
34 </presence> | |
35 | |
36 Romeo receives: | |
37 <message from="garden@conference.localhost" type="groupchat"> | |
38 <subject/> | |
39 </message> | |
40 | |
41 Romeo sends: | |
42 <iq to="garden@conference.localhost" id="lx3" type="set"> | |
43 <query xmlns="http://jabber.org/protocol/muc#owner"> | |
44 <x type="submit" xmlns="jabber:x:data"/> | |
45 </query> | |
46 </iq> | |
47 | |
48 Romeo receives: | |
49 <iq id="lx3" type="result" from="garden@conference.localhost"/> | |
50 | |
51 Juliet connects | |
52 | |
53 Romeo sends: | |
54 <message to="garden@conference.localhost" type="groupchat" id="rm1"> | |
55 <body>Where are thou my Juliet?</body> | |
56 </message> | |
57 | |
58 Romeo receives: | |
59 <message type="groupchat" from="garden@conference.localhost/romeo" id="rm1"> | |
60 <body>Where are thou my Juliet?</body> | |
61 </message> | |
62 | |
63 Juliet sends: | |
64 <presence to="garden@conference.localhost/juliet"> | |
65 <x xmlns="http://jabber.org/protocol/muc"/> | |
66 </presence> | |
67 | |
68 Juliet receives: | |
69 <presence from="garden@conference.localhost/romeo"> | |
70 <x xmlns="vcard-temp:x:update"> | |
71 <photo/> | |
72 </x> | |
73 <x xmlns="http://jabber.org/protocol/muc#user"> | |
74 <item affiliation="owner" role="moderator"/> | |
75 </x> | |
76 </presence> | |
77 | |
78 Juliet receives: | |
79 <presence from="garden@conference.localhost/juliet"> | |
80 <x xmlns="vcard-temp:x:update"> | |
81 <photo/> | |
82 </x> | |
83 <x xmlns="http://jabber.org/protocol/muc#user"> | |
84 <item affiliation="none" jid="${Juliet's full JID}" role="participant"/> | |
85 <status code="110"/> | |
86 </x> | |
87 </presence> | |
88 | |
89 Juliet receives: | |
90 <message from="garden@conference.localhost/romeo" id="rm1" type="groupchat"> | |
91 <body>Where are thou my Juliet?</body> | |
92 <delay stamp="{scansion:any}" xmlns="urn:xmpp:delay" from="garden@conference.localhost"/> | |
93 </message> | |
94 | |
95 Juliet receives: | |
96 <message from="garden@conference.localhost" type="groupchat"> | |
97 <subject/> | |
98 </message> | |
99 | |
100 Romeo receives: | |
101 <presence from="garden@conference.localhost/juliet"> | |
102 <x xmlns="vcard-temp:x:update"> | |
103 <photo/> | |
104 </x> | |
105 <x xmlns="http://jabber.org/protocol/muc#user"> | |
106 <item affiliation="none" jid="${Juliet's full JID}" role="participant"/> | |
107 </x> | |
108 </presence> | |
109 | |
110 Juliet sends: | |
111 <message to="garden@conference.localhost" type="groupchat" id="jm1"> | |
112 <body>/me jumps out from behind a tree</body> | |
113 </message> | |
114 | |
115 Romeo receives: | |
116 <message type="groupchat" id="jm1" from="garden@conference.localhost/juliet"> | |
117 <body>/me jumps out from behind a tree</body> | |
118 </message> | |
119 | |
120 Juliet receives: | |
121 <message type="groupchat" id="jm1" from="garden@conference.localhost/juliet"> | |
122 <body>/me jumps out from behind a tree</body> | |
123 </message> | |
124 | |
125 Juliet sends: | |
126 <message to="garden@conference.localhost" type="groupchat" id="jm2"> | |
127 <body>Here I am!</body> | |
128 </message> | |
129 | |
130 Romeo receives: | |
131 <message type="groupchat" id="jm2" from="garden@conference.localhost/juliet"> | |
132 <body>Here I am!</body> | |
133 </message> | |
134 | |
135 Juliet receives: | |
136 <message type="groupchat" id="jm2" from="garden@conference.localhost/juliet"> | |
137 <body>Here I am!</body> | |
138 </message> | |
139 | |
140 Romeo sends: | |
141 <message to="garden@conference.localhost" type="groupchat" id="rm2"> | |
142 <body>What is this place?</body> | |
143 </message> | |
144 | |
145 Romeo receives: | |
146 <message type="groupchat" id="rm2" from="garden@conference.localhost/romeo"> | |
147 <body>What is this place?</body> | |
148 </message> | |
149 | |
150 Juliet receives: | |
151 <message type="groupchat" id="rm2" from="garden@conference.localhost/romeo"> | |
152 <body>What is this place?</body> | |
153 </message> | |
154 | |
155 Juliet sends: | |
156 <message to="garden@conference.localhost" type="groupchat" id="jm3"> | |
157 <body>I think we're in a script!</body> | |
158 </message> | |
159 | |
160 Romeo receives: | |
161 <message type="groupchat" id="jm3" from="garden@conference.localhost/juliet"> | |
162 <body>I think we're in a script!</body> | |
163 </message> | |
164 | |
165 Juliet receives: | |
166 <message type="groupchat" id="jm3" from="garden@conference.localhost/juliet"> | |
167 <body>I think we're in a script!</body> | |
168 </message> | |
169 | |
170 Romeo sends: | |
171 <message to="garden@conference.localhost" type="groupchat" id="rm3"> | |
172 <body>Oh no! Does that mean our love is not real?!</body> | |
173 </message> | |
174 | |
175 Romeo receives: | |
176 <message type="groupchat" id="rm3" from="garden@conference.localhost/romeo"> | |
177 <body>Oh no! Does that mean our love is not real?!</body> | |
178 </message> | |
179 | |
180 Juliet receives: | |
181 <message type="groupchat" id="rm3" from="garden@conference.localhost/romeo"> | |
182 <body>Oh no! Does that mean our love is not real?!</body> | |
183 </message> | |
184 | |
185 Juliet sends: | |
186 <message to="garden@conference.localhost" type="groupchat" id="jm4"> | |
187 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
188 </message> | |
189 | |
190 Romeo receives: | |
191 <message type="groupchat" id="jm4" from="garden@conference.localhost/juliet"> | |
192 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
193 </message> | |
194 | |
195 Juliet receives: | |
196 <message type="groupchat" id="jm4" from="garden@conference.localhost/juliet"> | |
197 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
198 </message> | |
199 | |
200 Romeo sends: | |
201 <message to="garden@conference.localhost" type="groupchat" id="rm4"> | |
202 <body>Yes!</body> | |
203 </message> | |
204 | |
205 Romeo receives: | |
206 <message type="groupchat" id="rm4" from="garden@conference.localhost/romeo"> | |
207 <body>Yes!</body> | |
208 </message> | |
209 | |
210 Juliet receives: | |
211 <message type="groupchat" id="rm4" from="garden@conference.localhost/romeo"> | |
212 <body>Yes!</body> | |
213 </message> | |
214 | |
215 Romeo sends: | |
216 <iq to="garden@conference.localhost" id="lx4" type="set"> | |
217 <query xmlns="http://jabber.org/protocol/muc#owner"> | |
218 <destroy> | |
219 <reason>We refuse to live in this fantasy!</reason> | |
220 </destroy> | |
221 </query> | |
222 </iq> | |
223 | |
224 Juliet receives: | |
225 <presence from="garden@conference.localhost/juliet" type="unavailable"> | |
226 <x xmlns="http://jabber.org/protocol/muc#user"> | |
227 <destroy> | |
228 <reason>We refuse to live in this fantasy!</reason> | |
229 </destroy> | |
230 <item affiliation="none" jid="${Juliet's full JID}" role="none"/> | |
231 <status code="110"/> | |
232 </x> | |
233 </presence> | |
234 | |
235 Romeo receives: | |
236 <presence from="garden@conference.localhost/romeo" type="unavailable"> | |
237 <x xmlns="http://jabber.org/protocol/muc#user"> | |
238 <destroy> | |
239 <reason>We refuse to live in this fantasy!</reason> | |
240 </destroy> | |
241 <item affiliation="owner" jid="${Romeo's full JID}" role="none"/> | |
242 <status code="110"/> | |
243 </x> | |
244 </presence> | |
245 | |
246 Romeo receives: | |
247 <iq id="lx4" type="result" from="garden@conference.localhost"/> | |
248 | |
249 Juliet disconnects | |
250 | |
251 Romeo sends: | |
252 <presence to="elsewhere@conference.localhost/romeo"> | |
253 <x xmlns="http://jabber.org/protocol/muc"/> | |
254 </presence> | |
255 | |
256 Romeo receives: | |
257 <presence from="elsewhere@conference.localhost/romeo"> | |
258 <x xmlns="vcard-temp:x:update"> | |
259 <photo/> | |
260 </x> | |
261 <x xmlns="http://jabber.org/protocol/muc#user"> | |
262 <status code="201"/> | |
263 <item affiliation="owner" jid="${Romeo's full JID}" role="moderator"/> | |
264 <status code="110"/> | |
265 </x> | |
266 </presence> | |
267 | |
268 Romeo receives: | |
269 <message from="elsewhere@conference.localhost" type="groupchat"> | |
270 <subject/> | |
271 </message> | |
272 | |
273 Romeo sends: | |
274 <iq to="elsewhere@conference.localhost" id="lx5" type="set"> | |
275 <query xmlns="http://jabber.org/protocol/muc#owner"> | |
276 <x type="submit" xmlns="jabber:x:data"/> | |
277 </query> | |
278 </iq> | |
279 | |
280 Romeo receives: | |
281 <iq id="lx5" type="result" from="elsewhere@conference.localhost"/> | |
282 | |
283 Admin connects | |
284 | |
285 Admin sends: | |
286 <iq id="destroy" type="set" to="conference.localhost"> | |
287 <command xmlns="http://jabber.org/protocol/commands" node="http://prosody.im/protocol/muc#destroy"> | |
288 <x xmlns="jabber:x:data"> | |
289 <field var="rooms"> | |
290 <value>elsewhere@conference.localhost</value> | |
291 </field> | |
292 </x> | |
293 </command> | |
294 </iq> | |
295 | |
296 Romeo receives: | |
297 <presence from="elsewhere@conference.localhost/romeo" type="unavailable"> | |
298 <x xmlns="http://jabber.org/protocol/muc#user"> | |
299 <destroy/> | |
300 <item affiliation="owner" jid="${Romeo's full JID}" role="none"/> | |
301 <status code="110"/> | |
302 </x> | |
303 </presence> | |
304 | |
305 Romeo disconnects | |
306 | |
307 Admin receives: | |
308 <iq id="destroy" type="result" from="conference.localhost"> | |
309 <command xmlns="http://jabber.org/protocol/commands" node="http://prosody.im/protocol/muc#destroy" status="completed" sessionid="{scansion:any}"> | |
310 <note type="info">The following rooms were destroyed: elsewhere@conference.localhost</note> | |
311 </command> | |
312 </iq> | |
313 | |
314 Admin disconnects | |
315 | |
316 # recording ended on 2019-08-31T13:45:32Z |