Software /
code /
prosody
Comparison
spec/scansion/muc_create_destroy.scs @ 10229:3b769e53b33f
MUC: Add a test covering basic room creation, messages and destruction
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 31 Aug 2019 16:04:50 +0200 |
child | 10231:949b1b72537a |
comparison
equal
deleted
inserted
replaced
10228:e77bf4222fae | 10229:3b769e53b33f |
---|---|
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 ----- | |
12 | |
13 Romeo connects | |
14 | |
15 Romeo sends: | |
16 <presence to="garden@conference.localhost/romeo"> | |
17 <x xmlns="http://jabber.org/protocol/muc"/> | |
18 </presence> | |
19 | |
20 Romeo receives: | |
21 <presence from="garden@conference.localhost/romeo"> | |
22 <x xmlns="vcard-temp:x:update"/> | |
23 <x xmlns="http://jabber.org/protocol/muc#user"> | |
24 <status code="201"/> | |
25 <item affiliation="owner" jid="${Romeo's full JID}" role="moderator"/> | |
26 <status code="110"/> | |
27 </x> | |
28 </presence> | |
29 | |
30 Romeo receives: | |
31 <message from="garden@conference.localhost" type="groupchat"> | |
32 <subject/> | |
33 </message> | |
34 | |
35 Romeo sends: | |
36 <iq to="garden@conference.localhost" id="lx3" type="set"> | |
37 <query xmlns="http://jabber.org/protocol/muc#owner"> | |
38 <x type="submit" xmlns="jabber:x:data"/> | |
39 </query> | |
40 </iq> | |
41 | |
42 Romeo receives: | |
43 <iq id="lx3" type="result" from="garden@conference.localhost"/> | |
44 | |
45 Juliet connects | |
46 | |
47 Romeo sends: | |
48 <message to="garden@conference.localhost" type="groupchat" id="rm1"> | |
49 <body>Where are thou my Juliet?</body> | |
50 </message> | |
51 | |
52 Romeo receives: | |
53 <message type="groupchat" from="garden@conference.localhost/romeo" id="rm1"> | |
54 <body>Where are thou my Juliet?</body> | |
55 </message> | |
56 | |
57 Juliet sends: | |
58 <presence to="garden@conference.localhost/juliet"> | |
59 <x xmlns="http://jabber.org/protocol/muc"/> | |
60 </presence> | |
61 | |
62 Juliet receives: | |
63 <presence from="garden@conference.localhost/romeo"> | |
64 <x xmlns="vcard-temp:x:update"/> | |
65 <x xmlns="http://jabber.org/protocol/muc#user"> | |
66 <item affiliation="owner" role="moderator"/> | |
67 </x> | |
68 </presence> | |
69 | |
70 Juliet receives: | |
71 <presence from="garden@conference.localhost/juliet"> | |
72 <x xmlns="vcard-temp:x:update"/> | |
73 <x xmlns="http://jabber.org/protocol/muc#user"> | |
74 <item affiliation="none" jid="${Juliet's full JID}" role="participant"/> | |
75 <status code="110"/> | |
76 </x> | |
77 </presence> | |
78 | |
79 Juliet receives: | |
80 <message from="garden@conference.localhost/romeo" id="rm1" type="groupchat"> | |
81 <body>Where are thou my Juliet?</body> | |
82 <delay stamp="{scansion:any}" xmlns="urn:xmpp:delay" from="conference.localhost"/> | |
83 <x stamp="{scansion:any}" xmlns="jabber:x:delay" from="conference.localhost"/> | |
84 </message> | |
85 | |
86 Juliet receives: | |
87 <message from="garden@conference.localhost" type="groupchat"> | |
88 <subject/> | |
89 </message> | |
90 | |
91 Romeo receives: | |
92 <presence from="garden@conference.localhost/juliet"> | |
93 <x xmlns="vcard-temp:x:update"/> | |
94 <x xmlns="http://jabber.org/protocol/muc#user"> | |
95 <item affiliation="none" jid="${Juliet's full JID}" role="participant"/> | |
96 </x> | |
97 </presence> | |
98 | |
99 Juliet sends: | |
100 <message to="garden@conference.localhost" type="groupchat" id="jm1"> | |
101 <body>/me jumps out from behind a tree</body> | |
102 </message> | |
103 | |
104 Romeo receives: | |
105 <message type="groupchat" id="jm1" from="garden@conference.localhost/juliet"> | |
106 <body>/me jumps out from behind a tree</body> | |
107 </message> | |
108 | |
109 Juliet receives: | |
110 <message type="groupchat" id="jm1" from="garden@conference.localhost/juliet"> | |
111 <body>/me jumps out from behind a tree</body> | |
112 </message> | |
113 | |
114 Juliet sends: | |
115 <message to="garden@conference.localhost" type="groupchat" id="jm2"> | |
116 <body>Here I am!</body> | |
117 </message> | |
118 | |
119 Romeo receives: | |
120 <message type="groupchat" id="jm2" from="garden@conference.localhost/juliet"> | |
121 <body>Here I am!</body> | |
122 </message> | |
123 | |
124 Juliet receives: | |
125 <message type="groupchat" id="jm2" from="garden@conference.localhost/juliet"> | |
126 <body>Here I am!</body> | |
127 </message> | |
128 | |
129 Romeo sends: | |
130 <message to="garden@conference.localhost" type="groupchat" id="rm2"> | |
131 <body>What is this place?</body> | |
132 </message> | |
133 | |
134 Romeo receives: | |
135 <message type="groupchat" id="rm2" from="garden@conference.localhost/romeo"> | |
136 <body>What is this place?</body> | |
137 </message> | |
138 | |
139 Juliet receives: | |
140 <message type="groupchat" id="rm2" from="garden@conference.localhost/romeo"> | |
141 <body>What is this place?</body> | |
142 </message> | |
143 | |
144 Juliet sends: | |
145 <message to="garden@conference.localhost" type="groupchat" id="jm3"> | |
146 <body>I think we're in a script!</body> | |
147 </message> | |
148 | |
149 Romeo receives: | |
150 <message type="groupchat" id="jm3" from="garden@conference.localhost/juliet"> | |
151 <body>I think we're in a script!</body> | |
152 </message> | |
153 | |
154 Juliet receives: | |
155 <message type="groupchat" id="jm3" from="garden@conference.localhost/juliet"> | |
156 <body>I think we're in a script!</body> | |
157 </message> | |
158 | |
159 Romeo sends: | |
160 <message to="garden@conference.localhost" type="groupchat" id="rm3"> | |
161 <body>Oh no! Does that mean our love is not real?!</body> | |
162 </message> | |
163 | |
164 Romeo receives: | |
165 <message type="groupchat" id="rm3" from="garden@conference.localhost/romeo"> | |
166 <body>Oh no! Does that mean our love is not real?!</body> | |
167 </message> | |
168 | |
169 Juliet receives: | |
170 <message type="groupchat" id="rm3" from="garden@conference.localhost/romeo"> | |
171 <body>Oh no! Does that mean our love is not real?!</body> | |
172 </message> | |
173 | |
174 Juliet sends: | |
175 <message to="garden@conference.localhost" type="groupchat" id="jm4"> | |
176 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
177 </message> | |
178 | |
179 Romeo receives: | |
180 <message type="groupchat" id="jm4" from="garden@conference.localhost/juliet"> | |
181 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
182 </message> | |
183 | |
184 Juliet receives: | |
185 <message type="groupchat" id="jm4" from="garden@conference.localhost/juliet"> | |
186 <body>I refuse to accept this! Let's burn this place to the ground!</body> | |
187 </message> | |
188 | |
189 Romeo sends: | |
190 <message to="garden@conference.localhost" type="groupchat" id="rm4"> | |
191 <body>Yes!</body> | |
192 </message> | |
193 | |
194 Romeo receives: | |
195 <message type="groupchat" id="rm4" from="garden@conference.localhost/romeo"> | |
196 <body>Yes!</body> | |
197 </message> | |
198 | |
199 Juliet receives: | |
200 <message type="groupchat" id="rm4" from="garden@conference.localhost/romeo"> | |
201 <body>Yes!</body> | |
202 </message> | |
203 | |
204 Romeo sends: | |
205 <iq to="garden@conference.localhost" id="lx4" type="set"> | |
206 <query xmlns="http://jabber.org/protocol/muc#owner"> | |
207 <destroy> | |
208 <reason>We refuse to live in this fantasy!</reason> | |
209 </destroy> | |
210 </query> | |
211 </iq> | |
212 | |
213 Juliet receives: | |
214 <presence from="garden@conference.localhost/juliet" type="unavailable"> | |
215 <x xmlns="http://jabber.org/protocol/muc#user"> | |
216 <destroy> | |
217 <reason>We refuse to live in this fantasy!</reason> | |
218 </destroy> | |
219 <item affiliation="none" jid="${Juliet's full JID}" role="none"/> | |
220 <status code="110"/> | |
221 </x> | |
222 </presence> | |
223 | |
224 Romeo receives: | |
225 <presence from="garden@conference.localhost/romeo" 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="owner" jid="${Romeo's full JID}" role="none"/> | |
231 <status code="110"/> | |
232 </x> | |
233 </presence> | |
234 | |
235 Romeo receives: | |
236 <iq id="lx4" type="result" from="garden@conference.localhost"/> | |
237 | |
238 Juliet disconnects | |
239 | |
240 Romeo disconnects | |
241 | |
242 # recording ended on 2019-08-31T13:45:32Z |