Comparison

spec/scansion/muc_create_destroy.scs @ 10697:08ec83f90ce0

MUC: Add test for destroying a room by ad-hoc command Testing ad-hoc commands was not easily doable before 49312378ba1d relaxed the need for state and an extra roundtrip to execute commands
author Kim Alvefur <zash@zash.se>
date Fri, 20 Mar 2020 18:52:41 +0100
parent 10272:327e374f143c
child 10941:642773f3073b
comparison
equal deleted inserted replaced
10696:9a8a55a026e4 10697:08ec83f90ce0
4 jid: romeo@localhost/mK0dD6Ha 4 jid: romeo@localhost/mK0dD6Ha
5 password: password 5 password: password
6 6
7 [Client] Juliet 7 [Client] Juliet
8 jid: juliet@localhost/lVwkim_k 8 jid: juliet@localhost/lVwkim_k
9 password: password
10
11 [Client] Admin
12 jid: admin@localhost/DfNgg9VE
9 password: password 13 password: password
10 14
11 ----- 15 -----
12 16
13 Romeo connects 17 Romeo connects
243 Romeo receives: 247 Romeo receives:
244 <iq id="lx4" type="result" from="garden@conference.localhost"/> 248 <iq id="lx4" type="result" from="garden@conference.localhost"/>
245 249
246 Juliet disconnects 250 Juliet disconnects
247 251
252 Romeo sends:
253 <presence to="elsewhere@conference.localhost/romeo">
254 <x xmlns="http://jabber.org/protocol/muc"/>
255 </presence>
256
257 Romeo receives:
258 <presence from="elsewhere@conference.localhost/romeo">
259 <x xmlns="vcard-temp:x:update">
260 <photo/>
261 </x>
262 <x xmlns="http://jabber.org/protocol/muc#user">
263 <status code="201"/>
264 <item affiliation="owner" jid="${Romeo's full JID}" role="moderator"/>
265 <status code="110"/>
266 </x>
267 </presence>
268
269 Romeo receives:
270 <message from="elsewhere@conference.localhost" type="groupchat">
271 <subject/>
272 </message>
273
274 Romeo sends:
275 <iq to="elsewhere@conference.localhost" id="lx5" type="set">
276 <query xmlns="http://jabber.org/protocol/muc#owner">
277 <x type="submit" xmlns="jabber:x:data"/>
278 </query>
279 </iq>
280
281 Romeo receives:
282 <iq id="lx5" type="result" from="elsewhere@conference.localhost"/>
283
284 Admin connects
285
286 Admin sends:
287 <iq id="destroy" type="set" to="conference.localhost">
288 <command xmlns="http://jabber.org/protocol/commands" node="http://prosody.im/protocol/muc#destroy">
289 <x xmlns="jabber:x:data">
290 <field var="rooms">
291 <value>elsewhere@conference.localhost</value>
292 </field>
293 </x>
294 </command>
295 </iq>
296
297 Romeo receives:
298 <presence from="elsewhere@conference.localhost/romeo" type="unavailable">
299 <x xmlns="http://jabber.org/protocol/muc#user">
300 <destroy/>
301 <item affiliation="owner" jid="${Romeo's full JID}" role="none"/>
302 <status code="110"/>
303 </x>
304 </presence>
305
248 Romeo disconnects 306 Romeo disconnects
249 307
308 Admin receives:
309 <iq id="destroy" type="result" from="conference.localhost">
310 <command xmlns="http://jabber.org/protocol/commands" node="http://prosody.im/protocol/muc#destroy" status="completed" sessionid="{scansion:any}">
311 <note type="info">The following rooms were destroyed:&#10;elsewhere@conference.localhost</note>
312 </command>
313 </iq>
314
315 Admin disconnects
316
250 # recording ended on 2019-08-31T13:45:32Z 317 # recording ended on 2019-08-31T13:45:32Z