author | Kim Alvefur <zash@zash.se> |
Sun, 24 Mar 2024 21:31:47 +0100 | |
changeset 13467 | 3ce550ce44ce |
parent 12033 | 631b2afa7bc1 |
permissions | -rw-r--r-- |
9294
329a670ae975
spec/scansion: Ensure all scripts have sensible titles
Matthew Wild <mwild1@gmail.com>
parents:
9269
diff
changeset
|
1 |
# MUC: Room registration and reserved nicknames |
329a670ae975
spec/scansion: Ensure all scripts have sensible titles
Matthew Wild <mwild1@gmail.com>
parents:
9269
diff
changeset
|
2 |
|
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 |
[Client] Romeo |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 |
jid: user@localhost |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 |
password: password |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 |
[Client] Juliet |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 |
jid: user2@localhost |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 |
password: password |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 |
[Client] Rosaline |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 |
jid: user3@localhost |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 |
password: password |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 |
----- |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 |
Romeo connects |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 |
Romeo sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
20 |
<presence to="room@conference.localhost/Romeo"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
21 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
23 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
24 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
25 |
<presence from='room@conference.localhost/Romeo'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
26 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
27 |
<status code='201'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
28 |
<item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
29 |
<status code='110'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
30 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
31 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
32 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
33 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
34 |
<message type='groupchat' from='room@conference.localhost'><subject/></message> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
35 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
36 |
# Submit config form |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
37 |
Romeo sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
38 |
<iq id='config1' to='room@conference.localhost' type='set'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
39 |
<query xmlns='http://jabber.org/protocol/muc#owner'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
40 |
<x xmlns='jabber:x:data' type='submit'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
41 |
<field var='FORM_TYPE'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
42 |
<value>http://jabber.org/protocol/muc#roomconfig</value> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
43 |
</field> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
44 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
45 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
46 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
47 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
48 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
49 |
<iq id="config1" from="room@conference.localhost" type="result"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
50 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
51 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
52 |
Romeo sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
53 |
<iq id='member1' to='room@conference.localhost' type='set'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
54 |
<query xmlns='http://jabber.org/protocol/muc#admin'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
55 |
<item affiliation='member' jid="${Juliet's JID}" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
56 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
57 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
58 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
59 |
Romeo receives: |
9605
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
60 |
<message from='room@conference.localhost'> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
61 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
62 |
<item jid="${Juliet's JID}" affiliation='member' /> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
63 |
</x> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
64 |
</message> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
65 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
66 |
Romeo receives: |
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
67 |
<iq from='room@conference.localhost' id='member1' type='result'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
68 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
69 |
# Juliet connects, and joins the room |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
70 |
Juliet connects |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
71 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
72 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
73 |
<presence to="room@conference.localhost/Juliet"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
74 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
75 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
76 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
77 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
78 |
<presence from="room@conference.localhost/Romeo" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
79 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
80 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
81 |
<presence from="room@conference.localhost/Juliet" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
82 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
83 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
84 |
<message type='groupchat' from='room@conference.localhost'><subject/></message> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
85 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
86 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
87 |
<presence from="room@conference.localhost/Juliet" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
88 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
89 |
# Juliet retrieves the registration form |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
90 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
91 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
92 |
<iq id='jw81b36f' to='room@conference.localhost' type='get'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
93 |
<query xmlns='jabber:iq:register'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
94 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
95 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
96 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
97 |
<iq type='result' from='room@conference.localhost' id='jw81b36f'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
98 |
<query xmlns='jabber:iq:register'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
99 |
<x type='form' xmlns='jabber:x:data'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
100 |
<field type='hidden' var='FORM_TYPE'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
101 |
<value>http://jabber.org/protocol/muc#register</value> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
102 |
</field> |
10377
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
103 |
<field type='text-single' label='Nickname' var='muc#register_roomnick'> |
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
104 |
<required/> |
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
105 |
</field> |
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
106 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
107 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
108 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
109 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
110 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
111 |
<iq id='nv71va54' to='room@conference.localhost' type='set'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
112 |
<query xmlns='jabber:iq:register'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
113 |
<x xmlns='jabber:x:data' type='submit'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
114 |
<field var='FORM_TYPE'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
115 |
<value>http://jabber.org/protocol/muc#register</value> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
116 |
</field> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
117 |
<field var='muc#register_roomnick'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
118 |
<value>Juliet</value> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
119 |
</field> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
120 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
121 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
122 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
123 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
124 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
125 |
<presence from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
126 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
127 |
<item affiliation='member' jid="${Juliet's full JID}" role='participant'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
128 |
<status code='110'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
129 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
130 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
131 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
132 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
133 |
<iq type='result' from='room@conference.localhost' id='nv71va54'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
134 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
135 |
# Juliet discovers her reserved nick |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
136 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
137 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
138 |
<iq id='getnick1' to='room@conference.localhost' type='get'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
139 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
140 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
141 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
142 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
143 |
<iq type='result' from='room@conference.localhost' id='getnick1'> |
9302
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
144 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'> |
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
145 |
<identity category='conference' name='Juliet' type='text'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
146 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
147 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
148 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
149 |
# Juliet leaves the room: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
150 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
151 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
152 |
<presence type="unavailable" to="room@conference.localhost/Juliet" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
153 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
154 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
155 |
<presence type='unavailable' from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
156 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
157 |
<item jid="${Juliet's full JID}" affiliation='member' role='none'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
158 |
<status code='110'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
159 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
160 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
161 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
162 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
163 |
<presence from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
164 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
165 |
<item jid="${Juliet's full JID}" affiliation='member' role='participant'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
166 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
167 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
168 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
169 |
# Rosaline connect and tries to join the room as Juliet |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
170 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
171 |
Rosaline connects |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
172 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
173 |
Rosaline sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
174 |
<presence to="room@conference.localhost/Juliet"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
175 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
176 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
177 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
178 |
Rosaline receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
179 |
<presence type='error' from='room@conference.localhost/Juliet'> |
10452
cbe524ed1a6a
MUC: Indicate origin of registration related errors
Kim Alvefur <zash@zash.se>
parents:
10377
diff
changeset
|
180 |
<error type='cancel' by='room@conference.localhost'> |
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
181 |
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
182 |
</error> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
183 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
184 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
185 |
# In a heated moment, Juliet unregisters from the room |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
186 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
187 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
188 |
<iq type='set' to='room@conference.localhost' id='unreg1'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
189 |
<query xmlns='jabber:iq:register'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
190 |
<remove/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
191 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
192 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
193 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
194 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
195 |
<iq type='result' from='room@conference.localhost' id='unreg1'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
196 |
|
9605
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
197 |
# Romeo is notified of Juliet's sad decision |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
198 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
199 |
Romeo receives: |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
200 |
<message from='room@conference.localhost'> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
201 |
<x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='true'> |
10760
a026e4f45f3f
MUC tests: Add missing affiliation attribute
Matthew Wild <mwild1@gmail.com>
parents:
10759
diff
changeset
|
202 |
<item jid="${Juliet's JID}" affiliation='none' /> |
9605
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
203 |
</x> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
204 |
</message> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
205 |
|
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
206 |
# Rosaline attempts once more to sneak into the room, disguised as Juliet |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
207 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
208 |
Rosaline sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
209 |
<presence to="room@conference.localhost/Juliet"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
210 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
211 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
212 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
213 |
Rosaline receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
214 |
<presence from='room@conference.localhost/Romeo'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
215 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
216 |
<item affiliation='owner' role='moderator'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
217 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
218 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
219 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
220 |
Rosaline receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
221 |
<presence from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
222 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
223 |
<item affiliation='none' jid="${Rosaline's full JID}" role='participant'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
224 |
<status code='110'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
225 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
226 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
227 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
228 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
229 |
<presence from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
230 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
231 |
<item affiliation='none' jid="${Rosaline's full JID}" role='participant'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
232 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
233 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
234 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
235 |
# On discovering the ruse, Romeo restores Juliet's nick and status within the room |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
236 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
237 |
Romeo sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
238 |
<iq id='member1' to='room@conference.localhost' type='set'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
239 |
<query xmlns='http://jabber.org/protocol/muc#admin'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
240 |
<item affiliation='member' jid="${Juliet's JID}" nick='Juliet' /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
241 |
</query> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
242 |
</iq> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
243 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
244 |
# Rosaline is evicted from the room |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
245 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
246 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
247 |
<presence from='room@conference.localhost/Juliet' type='unavailable'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
248 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
249 |
<status code='307'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
250 |
<item affiliation='none' role='none' jid="${Rosaline's full JID}"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
251 |
<reason>This nickname is reserved</reason> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
252 |
</item> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
253 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
254 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
255 |
|
9605
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
256 |
# An out-of-room affiliation change is received for Juliet |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
257 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
258 |
Romeo receives: |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
259 |
<message from='room@conference.localhost'> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
260 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
261 |
<item jid="${Juliet's JID}" affiliation='member' /> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
262 |
</x> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
263 |
</message> |
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9325
diff
changeset
|
264 |
|
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
265 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
266 |
<iq type='result' id='member1' from='room@conference.localhost' /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
267 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
268 |
Rosaline receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
269 |
<presence type='unavailable' from='room@conference.localhost/Juliet'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
270 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
271 |
<status code='307'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
272 |
<item affiliation='none' jid="${Rosaline's full JID}" role='none'> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
273 |
<reason>This nickname is reserved</reason> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
274 |
</item> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
275 |
<status code='110'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
276 |
</x> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
277 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
278 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
279 |
# Rosaline, frustrated, attempts to get back into the room... |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
280 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
281 |
Rosaline sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
282 |
<presence to="room@conference.localhost/Juliet"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
283 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
284 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
285 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
286 |
# ...but once again, is denied |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
287 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
288 |
Rosaline receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
289 |
<presence type='error' from='room@conference.localhost/Juliet'> |
10452
cbe524ed1a6a
MUC: Indicate origin of registration related errors
Kim Alvefur <zash@zash.se>
parents:
10377
diff
changeset
|
290 |
<error type='cancel' by='room@conference.localhost'> |
9269
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
291 |
<conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
292 |
</error> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
293 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
294 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
295 |
# Juliet, however, quietly joins the room with success |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
296 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
297 |
Juliet sends: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
298 |
<presence to="room@conference.localhost/Juliet"> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
299 |
<x xmlns="http://jabber.org/protocol/muc"/> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
300 |
</presence> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
301 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
302 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
303 |
<presence from="room@conference.localhost/Romeo" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
304 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
305 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
306 |
<presence from="room@conference.localhost/Juliet" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
307 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
308 |
Juliet receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
309 |
<message type='groupchat' from='room@conference.localhost'><subject/></message> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
310 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
311 |
Romeo receives: |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
312 |
<presence from="room@conference.localhost/Juliet" /> |
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
313 |
|
9302
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
314 |
# Romeo checks whether he has reserved his own nick yet |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
315 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
316 |
Romeo sends: |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
317 |
<iq id='getnick1' to='room@conference.localhost' type='get'> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
318 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'/> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
319 |
</iq> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
320 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
321 |
# But no nick is returned, as he hasn't registered yet! |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
322 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
323 |
Romeo receives: |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
324 |
<iq type='result' from='room@conference.localhost' id='getnick1'> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
325 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item' scansion:strict='true' /> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
326 |
</iq> |
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
327 |
|
9301
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
328 |
# Romeo updates his own registration |
10519
35bf3b80480f
scansion: Trim trailing whitespace in tests
Kim Alvefur <zash@zash.se>
parents:
10452
diff
changeset
|
329 |
|
9301
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
330 |
Romeo sends: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
331 |
<iq id='jw81b36f' to='room@conference.localhost' type='get'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
332 |
<query xmlns='jabber:iq:register'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
333 |
</iq> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
334 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
335 |
Romeo receives: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
336 |
<iq type='result' from='room@conference.localhost' id='jw81b36f'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
337 |
<query xmlns='jabber:iq:register'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
338 |
<x type='form' xmlns='jabber:x:data'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
339 |
<field type='hidden' var='FORM_TYPE'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
340 |
<value>http://jabber.org/protocol/muc#register</value> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
341 |
</field> |
10377
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
342 |
<field type='text-single' label='Nickname' var='muc#register_roomnick'> |
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
343 |
<required/> |
51ea82f55322
MUC: Make nickname field in registration form required
Kim Alvefur <zash@zash.se>
parents:
9722
diff
changeset
|
344 |
</field> |
9301
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
345 |
</x> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
346 |
</query> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
347 |
</iq> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
348 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
349 |
Romeo sends: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
350 |
<iq id='nv71va54' to='room@conference.localhost' type='set'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
351 |
<query xmlns='jabber:iq:register'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
352 |
<x xmlns='jabber:x:data' type='submit'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
353 |
<field var='FORM_TYPE'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
354 |
<value>http://jabber.org/protocol/muc#register</value> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
355 |
</field> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
356 |
<field var='muc#register_roomnick'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
357 |
<value>Romeo</value> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
358 |
</field> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
359 |
</x> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
360 |
</query> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
361 |
</iq> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
362 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
363 |
Romeo receives: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
364 |
<presence from='room@conference.localhost/Romeo'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
365 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
366 |
<item affiliation='owner' jid="${Romeo's full JID}" role='moderator'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
367 |
<status code='110'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
368 |
</x> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
369 |
</presence> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
370 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
371 |
Romeo receives: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
372 |
<iq type='result' from='room@conference.localhost' id='nv71va54'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
373 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
374 |
Juliet receives: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
375 |
<presence from='room@conference.localhost/Romeo'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
376 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
377 |
<item role='moderator' xmlns='http://jabber.org/protocol/muc#user' affiliation='owner'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
378 |
</x> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
379 |
</presence> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
380 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
381 |
# Romeo discovers his reserved nick |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
382 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
383 |
Romeo sends: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
384 |
<iq id='getnick1' to='room@conference.localhost' type='get'> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
385 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
386 |
</iq> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
387 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
388 |
Romeo receives: |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
389 |
<iq type='result' from='room@conference.localhost' id='getnick1'> |
9302
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9301
diff
changeset
|
390 |
<query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'> |
9301
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
391 |
<identity category='conference' name='Romeo' type='text'/> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
392 |
</query> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
393 |
</iq> |
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9294
diff
changeset
|
394 |
|
9315
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
395 |
# To check the status of the room is as expected, Romeo requests the member list |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
396 |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
397 |
Romeo sends: |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
398 |
<iq id='member3' to='room@conference.localhost' type='get'> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
399 |
<query xmlns='http://jabber.org/protocol/muc#admin'> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
400 |
<item affiliation='member'/> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
401 |
</query> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
402 |
</iq> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
403 |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
404 |
Romeo receives: |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
405 |
<iq from='room@conference.localhost' type='result' id='member3'> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
406 |
<query xmlns='http://jabber.org/protocol/muc#admin'> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
407 |
<item jid="${Juliet's JID}" affiliation='member' nick='Juliet'/> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
408 |
</query> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
409 |
</iq> |
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9302
diff
changeset
|
410 |
|
9318
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
411 |
Juliet sends: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
412 |
<presence type="unavailable" to="room@conference.localhost/Juliet" /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
413 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
414 |
Juliet receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
415 |
<presence from='room@conference.localhost/Juliet' type='unavailable' /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
416 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
417 |
Romeo receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
418 |
<presence type='unavailable' from='room@conference.localhost/Juliet' /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
419 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
420 |
# Rosaline joins as herself |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
421 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
422 |
Rosaline sends: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
423 |
<presence to="room@conference.localhost/Rosaline"> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
424 |
<x xmlns="http://jabber.org/protocol/muc"/> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
425 |
</presence> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
426 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
427 |
Rosaline receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
428 |
<presence from="room@conference.localhost/Romeo" /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
429 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
430 |
Rosaline receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
431 |
<presence from="room@conference.localhost/Rosaline" /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
432 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
433 |
Rosaline receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
434 |
<message type='groupchat' from='room@conference.localhost'><subject/></message> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
435 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
436 |
Romeo receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
437 |
<presence from='room@conference.localhost/Rosaline'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
438 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
439 |
<item jid="${Rosaline's full JID}" affiliation='none' role='participant'/> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
440 |
</x> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
441 |
</presence> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
442 |
|
9325
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
443 |
# Rosaline tries to register her own nickname, but unaffiliated |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
444 |
# registration is disabled by default |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
445 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
446 |
Rosaline sends: |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
447 |
<iq id='reg990' to='room@conference.localhost' type='get'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
448 |
<query xmlns='jabber:iq:register'/> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
449 |
</iq> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
450 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
451 |
Rosaline receives: |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
452 |
<iq type='error' from='room@conference.localhost' id='reg990'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
453 |
<error type='auth'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
454 |
<registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
455 |
</error> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
456 |
</iq> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
457 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
458 |
Rosaline sends: |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
459 |
<iq id='reg991' to='room@conference.localhost' type='set'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
460 |
<query xmlns='jabber:iq:register'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
461 |
<x xmlns='jabber:x:data' type='submit'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
462 |
<field var='FORM_TYPE'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
463 |
<value>http://jabber.org/protocol/muc#register</value> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
464 |
</field> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
465 |
<field var='muc#register_roomnick'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
466 |
<value>Romeo</value> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
467 |
</field> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
468 |
</x> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
469 |
</query> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
470 |
</iq> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
471 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
472 |
Rosaline receives: |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
473 |
<iq id='reg991' type='error'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
474 |
<error type='auth'> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
475 |
<registration-required xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
476 |
</error> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
477 |
</iq> |
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9318
diff
changeset
|
478 |
|
9318
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
479 |
# Romeo reserves her nickname for her |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
480 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
481 |
Romeo sends: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
482 |
<iq id='member2' to='room@conference.localhost' type='set'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
483 |
<query xmlns='http://jabber.org/protocol/muc#admin'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
484 |
<item affiliation='member' jid="${Rosaline's JID}" nick='Rosaline' /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
485 |
</query> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
486 |
</iq> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
487 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
488 |
Romeo receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
489 |
<presence from='room@conference.localhost/Rosaline'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
490 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
491 |
<item affiliation='member' role='participant' jid="${Rosaline's full JID}"> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
492 |
<actor jid="${Romeo's full JID}" nick='Romeo'/> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
493 |
</item> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
494 |
</x> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
495 |
</presence> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
496 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
497 |
Romeo receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
498 |
<iq type='result' id='member2' from='room@conference.localhost' /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
499 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
500 |
Rosaline receives: |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
501 |
<presence from='room@conference.localhost/Rosaline'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
502 |
<x xmlns='http://jabber.org/protocol/muc#user'> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
503 |
<item affiliation='member' role='participant' jid="${Rosaline's full JID}"> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
504 |
<actor nick='Romeo' /> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
505 |
</item> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
506 |
<status xmlns='http://jabber.org/protocol/muc#user' code='110'/> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
507 |
</x> |
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
508 |
</presence> |
9722
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
509 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
510 |
# Romeo sets their their own nickname via admin query (see #1273) |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
511 |
Romeo sends: |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
512 |
<iq to="room@conference.localhost" id="reserve" type="set"> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
513 |
<query xmlns="http://jabber.org/protocol/muc#admin"> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
514 |
<item nick="Romeo" affiliation="owner" jid="${Romeo's JID}"/> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
515 |
</query> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
516 |
</iq> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
517 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
518 |
Romeo receives: |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
519 |
<presence from="room@conference.localhost/Romeo"> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
520 |
<x xmlns="http://jabber.org/protocol/muc#user"> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
521 |
<item xmlns="http://jabber.org/protocol/muc#user" role="moderator" jid="${Romeo's full JID}" affiliation="owner"> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
522 |
<actor xmlns="http://jabber.org/protocol/muc#user" nick="Romeo"/> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
523 |
</item> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
524 |
<status xmlns="http://jabber.org/protocol/muc#user" code="110"/> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
525 |
</x> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
526 |
</presence> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
527 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
528 |
Romeo receives: |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
529 |
<iq from="room@conference.localhost" id="reserve" type="result"/> |
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9605
diff
changeset
|
530 |