Annotate

spec/scansion/muc_create_destroy.scs @ 13270:14bbfb2cc8dd default tip

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