Software / code / prosody
Annotate
spec/scansion/muc_register.scs @ 10096:46a7792fdac5
util.poll: Add missing return statements in fallback mode
These allowed modifying or deleting select() state for unregistered FDs.
During normal usage this should never happen. Modifying one that isn't
set might cause weirdness but deleting an already deleted FD isn't a
problem.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 28 Jul 2019 16:17:23 +0200 |
| parent | 9718:81ef96368bff |
| child | 10373:51ea82f55322 |
| rev | line source |
|---|---|
|
9291
329a670ae975
spec/scansion: Ensure all scripts have sensible titles
Matthew Wild <mwild1@gmail.com>
parents:
9266
diff
changeset
|
1 # MUC: Room registration and reserved nicknames |
|
329a670ae975
spec/scansion: Ensure all scripts have sensible titles
Matthew Wild <mwild1@gmail.com>
parents:
9266
diff
changeset
|
2 |
|
9266
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: |
|
9601
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
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:
9322
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:
9322
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:
9322
diff
changeset
|
63 </x> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
64 </message> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
65 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
66 Romeo receives: |
|
9266
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> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
103 <field type='text-single' label='Nickname' var='muc#register_roomnick'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
104 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
105 </query> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
106 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
107 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
108 Juliet sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
109 <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
|
110 <query xmlns='jabber:iq:register'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
111 <x xmlns='jabber:x:data' type='submit'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
112 <field var='FORM_TYPE'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
113 <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
|
114 </field> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
115 <field var='muc#register_roomnick'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
116 <value>Juliet</value> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
117 </field> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
118 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
119 </query> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
120 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
121 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
122 Juliet receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
123 <presence from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
124 <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
|
125 <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
|
126 <status code='110'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
127 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
128 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
129 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
130 Juliet receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
131 <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
|
132 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
133 # Juliet discovers her reserved nick |
|
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 sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
136 <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
|
137 <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
|
138 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
139 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
140 Juliet receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
141 <iq type='result' from='room@conference.localhost' id='getnick1'> |
|
9299
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
142 <query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'> |
|
9266
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
143 <identity category='conference' name='Juliet' type='text'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
144 </query> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
145 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
146 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
147 # Juliet leaves the room: |
|
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 sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
150 <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
|
151 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
152 Juliet receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
153 <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
|
154 <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
|
155 <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
|
156 <status code='110'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
157 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
158 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
159 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
160 Romeo receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
161 <presence from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
162 <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
|
163 <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
|
164 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
165 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
166 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
167 # 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
|
168 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
169 Rosaline connects |
|
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 sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
172 <presence to="room@conference.localhost/Juliet"> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
173 <x xmlns="http://jabber.org/protocol/muc"/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
174 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
175 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
176 Rosaline receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
177 <presence type='error' from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
178 <error type='cancel'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
179 <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
|
180 </error> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
181 <x xmlns='http://jabber.org/protocol/muc'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
182 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
183 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
184 # 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
|
185 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
186 Juliet sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
187 <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
|
188 <query xmlns='jabber:iq:register'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
189 <remove/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
190 </query> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
191 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
192 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
193 Juliet receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
194 <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
|
195 |
|
9601
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
196 # 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:
9322
diff
changeset
|
197 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
198 Romeo receives: |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
199 <message from='room@conference.localhost'> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
200 <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='true'> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
201 <item jid="${Juliet's JID}" /> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
202 </x> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
203 </message> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
204 |
|
9266
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
205 # 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
|
206 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
207 Rosaline sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
208 <presence to="room@conference.localhost/Juliet"> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
209 <x xmlns="http://jabber.org/protocol/muc"/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
210 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
211 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
212 Rosaline receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
213 <presence from='room@conference.localhost/Romeo'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
214 <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
|
215 <item affiliation='owner' role='moderator'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
216 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
217 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
218 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
219 Rosaline receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
220 <presence from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
221 <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
|
222 <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
|
223 <status code='110'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
224 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
225 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
226 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
227 Romeo receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
228 <presence from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
229 <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
|
230 <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
|
231 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
232 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
233 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
234 # 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
|
235 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
236 Romeo sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
237 <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
|
238 <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
|
239 <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
|
240 </query> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
241 </iq> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
242 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
243 # Rosaline is evicted from the room |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
244 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
245 Romeo receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
246 <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
|
247 <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
|
248 <status code='307'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
249 <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
|
250 <reason>This nickname is reserved</reason> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
251 </item> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
252 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
253 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
254 |
|
9601
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
255 # 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:
9322
diff
changeset
|
256 |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
257 Romeo receives: |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
258 <message from='room@conference.localhost'> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
259 <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:
9322
diff
changeset
|
260 <item jid="${Juliet's JID}" affiliation='member' /> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
261 </x> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
262 </message> |
|
b9854605938d
muc_register.scs: Fix to expect new affiliation change notifications
Matthew Wild <mwild1@gmail.com>
parents:
9322
diff
changeset
|
263 |
|
9266
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
264 Romeo receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
265 <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
|
266 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
267 Rosaline receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
268 <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
|
269 <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
|
270 <status code='307'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
271 <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
|
272 <reason>This nickname is reserved</reason> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
273 </item> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
274 <status code='110'/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
275 </x> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
276 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
277 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
278 # 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
|
279 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
280 Rosaline sends: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
281 <presence to="room@conference.localhost/Juliet"> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
282 <x xmlns="http://jabber.org/protocol/muc"/> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
283 </presence> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
284 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
285 # ...but once again, is denied |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
286 |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
287 Rosaline receives: |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
288 <presence type='error' from='room@conference.localhost/Juliet'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
289 <error type='cancel'> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
290 <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
|
291 </error> |
|
c5267f5fd6e6
spec/scansion: Add scansion scripts used for testing
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
292 <x xmlns='http://jabber.org/protocol/muc'/> |
|
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 |
|
9299
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
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:
9298
diff
changeset
|
315 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
316 Romeo sends: |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
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:
9298
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:
9298
diff
changeset
|
319 </iq> |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
320 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
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:
9298
diff
changeset
|
322 |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
323 Romeo receives: |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
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:
9298
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:
9298
diff
changeset
|
326 </iq> |
|
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
327 |
|
9298
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
328 # Romeo updates his own registration |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
329 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
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:
9291
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:
9291
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:
9291
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:
9291
diff
changeset
|
334 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
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:
9291
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:
9291
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:
9291
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:
9291
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:
9291
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:
9291
diff
changeset
|
341 </field> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
342 <field type='text-single' label='Nickname' 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:
9291
diff
changeset
|
343 </x> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
344 </query> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
345 </iq> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
346 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
347 Romeo sends: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
348 <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:
9291
diff
changeset
|
349 <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:
9291
diff
changeset
|
350 <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:
9291
diff
changeset
|
351 <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:
9291
diff
changeset
|
352 <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:
9291
diff
changeset
|
353 </field> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
354 <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:
9291
diff
changeset
|
355 <value>Romeo</value> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
356 </field> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
357 </x> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
358 </query> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
359 </iq> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
360 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
361 Romeo receives: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
362 <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:
9291
diff
changeset
|
363 <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:
9291
diff
changeset
|
364 <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:
9291
diff
changeset
|
365 <status code='110'/> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
366 </x> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
367 </presence> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
368 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
369 Romeo receives: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
370 <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:
9291
diff
changeset
|
371 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
372 Juliet receives: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
373 <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:
9291
diff
changeset
|
374 <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:
9291
diff
changeset
|
375 <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:
9291
diff
changeset
|
376 </x> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
377 </presence> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
378 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
379 # 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:
9291
diff
changeset
|
380 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
381 Romeo sends: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
382 <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:
9291
diff
changeset
|
383 <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:
9291
diff
changeset
|
384 </iq> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
385 |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
386 Romeo receives: |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
387 <iq type='result' from='room@conference.localhost' id='getnick1'> |
|
9299
2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9298
diff
changeset
|
388 <query xmlns='http://jabber.org/protocol/disco#info' node='x-roomuser-item'> |
|
9298
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
389 <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:
9291
diff
changeset
|
390 </query> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
391 </iq> |
|
2d71040a959f
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9291
diff
changeset
|
392 |
|
9312
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
393 # 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:
9299
diff
changeset
|
394 |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
395 Romeo sends: |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
396 <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:
9299
diff
changeset
|
397 <query xmlns='http://jabber.org/protocol/muc#admin'> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
398 <item affiliation='member'/> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
399 </query> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
400 </iq> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
401 |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
402 Romeo receives: |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
403 <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:
9299
diff
changeset
|
404 <query xmlns='http://jabber.org/protocol/muc#admin'> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
405 <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:
9299
diff
changeset
|
406 </query> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
407 </iq> |
|
6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Matthew Wild <mwild1@gmail.com>
parents:
9299
diff
changeset
|
408 |
|
9315
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
409 Juliet sends: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
410 <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:
9312
diff
changeset
|
411 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
412 Juliet receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
413 <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:
9312
diff
changeset
|
414 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
415 Romeo receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
416 <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:
9312
diff
changeset
|
417 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
418 # 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:
9312
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:
9312
diff
changeset
|
420 Rosaline sends: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
421 <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:
9312
diff
changeset
|
422 <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:
9312
diff
changeset
|
423 </presence> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
424 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
425 Rosaline receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
426 <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:
9312
diff
changeset
|
427 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
428 Rosaline receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
429 <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:
9312
diff
changeset
|
430 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
431 Rosaline receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
432 <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:
9312
diff
changeset
|
433 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
434 Romeo receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
435 <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:
9312
diff
changeset
|
436 <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:
9312
diff
changeset
|
437 <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:
9312
diff
changeset
|
438 </x> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
439 </presence> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
440 |
|
9322
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
441 # 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:
9315
diff
changeset
|
442 # 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:
9315
diff
changeset
|
443 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
444 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:
9315
diff
changeset
|
445 <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:
9315
diff
changeset
|
446 <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:
9315
diff
changeset
|
447 </iq> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
448 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
449 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:
9315
diff
changeset
|
450 <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:
9315
diff
changeset
|
451 <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:
9315
diff
changeset
|
452 <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:
9315
diff
changeset
|
453 </error> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
454 </iq> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
455 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
456 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:
9315
diff
changeset
|
457 <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:
9315
diff
changeset
|
458 <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:
9315
diff
changeset
|
459 <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:
9315
diff
changeset
|
460 <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:
9315
diff
changeset
|
461 <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:
9315
diff
changeset
|
462 </field> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
463 <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:
9315
diff
changeset
|
464 <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:
9315
diff
changeset
|
465 </field> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
466 </x> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
467 </query> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
468 </iq> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
469 |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
470 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:
9315
diff
changeset
|
471 <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:
9315
diff
changeset
|
472 <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:
9315
diff
changeset
|
473 <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:
9315
diff
changeset
|
474 </error> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
475 </iq> |
|
4ce972d77c53
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Matthew Wild <mwild1@gmail.com>
parents:
9315
diff
changeset
|
476 |
|
9315
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
477 # 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:
9312
diff
changeset
|
478 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
479 Romeo sends: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
480 <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:
9312
diff
changeset
|
481 <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:
9312
diff
changeset
|
482 <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:
9312
diff
changeset
|
483 </query> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
484 </iq> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
485 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
486 Romeo receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
487 <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:
9312
diff
changeset
|
488 <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:
9312
diff
changeset
|
489 <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:
9312
diff
changeset
|
490 <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:
9312
diff
changeset
|
491 </item> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
492 </x> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
493 </presence> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
494 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
495 Romeo receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
496 <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:
9312
diff
changeset
|
497 |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
498 Rosaline receives: |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
499 <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:
9312
diff
changeset
|
500 <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:
9312
diff
changeset
|
501 <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:
9312
diff
changeset
|
502 <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:
9312
diff
changeset
|
503 </item> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
504 <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:
9312
diff
changeset
|
505 </x> |
|
a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Matthew Wild <mwild1@gmail.com>
parents:
9312
diff
changeset
|
506 </presence> |
|
9718
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
507 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
508 # 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:
9601
diff
changeset
|
509 Romeo sends: |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
510 <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:
9601
diff
changeset
|
511 <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:
9601
diff
changeset
|
512 <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:
9601
diff
changeset
|
513 </query> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
514 </iq> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
515 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
516 Romeo receives: |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
517 <presence from="room@conference.localhost/Romeo"> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
518 <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:
9601
diff
changeset
|
519 <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:
9601
diff
changeset
|
520 <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:
9601
diff
changeset
|
521 </item> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
522 <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:
9601
diff
changeset
|
523 </x> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
524 </presence> |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
525 |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
526 Romeo receives: |
|
81ef96368bff
MUC: Allow changing data attached to an only owner (fixes #1273)
Kim Alvefur <zash@zash.se>
parents:
9601
diff
changeset
|
527 <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:
9601
diff
changeset
|
528 |