Annotate

spec/scansion/muc_nickname_change.scs @ 11832:30ca1be53829

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 01 Oct 2021 01:05:16 +0200
parent 10435:6e3fa523c969
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10435
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 # MUC: Change nickname
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 # Make sure a role is not reset, see #1466
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 [Client] Romeo
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 jid: user@localhost
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 password: password
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 [Client] Juliet
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 jid: user2@localhost
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 password: password
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 -----
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 Romeo connects
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 Romeo sends:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 <presence to="room@conference.localhost/Romeo">
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 <x xmlns="http://jabber.org/protocol/muc"/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 Romeo receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 <presence from='room@conference.localhost/Romeo'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 <status code='201'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 <status code='110'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 Romeo receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 <message type='groupchat' from='room@conference.localhost'><subject/></message>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 Romeo sends:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 <iq id='config1' to='room@conference.localhost' type='set'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 <query xmlns='http://jabber.org/protocol/muc#owner'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 <x xmlns='jabber:x:data' type='submit'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 <field var='FORM_TYPE'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 <value>http://jabber.org/protocol/muc#roomconfig</value>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 </field>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 <field var='muc#roomconfig_moderatedroom'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 <value>1</value>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
42 </field>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
43 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
44 </query>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
45 </iq>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
46
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
47 Romeo receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
48 <iq id="config1" from="room@conference.localhost" type="result"/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
49
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
50 Juliet connects
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
51
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
52 Juliet sends:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
53 <presence to="room@conference.localhost/Juliet">
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
54 <x xmlns="http://jabber.org/protocol/muc"/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
55 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
56
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
57 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
58 <presence from='room@conference.localhost/Romeo'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
59 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
60 <item role='moderator' xmlns='http://jabber.org/protocol/muc#user' affiliation='owner'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
61 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
62 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
63
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
64 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
65 <presence from='room@conference.localhost/Juliet'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
66 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
67 <item jid="${Juliet's full JID}" affiliation='none' role='visitor'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
68 <status code='110'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
69 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
70 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
71
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
72
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
73 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
74 <message type='groupchat' from='room@conference.localhost'><subject/></message>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
75
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
76 Romeo receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
77 <presence from='room@conference.localhost/Juliet'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
78 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
79 <item affiliation="none" role="visitor" jid="${Juliet's full JID}"/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
80 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
81 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
82
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
83 Romeo sends:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
84 <iq id='config1' to='room@conference.localhost' type='set'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
85 <query xmlns='http://jabber.org/protocol/muc#owner'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
86 <x xmlns='jabber:x:data' type='submit'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
87 <field var='FORM_TYPE'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
88 <value>http://jabber.org/protocol/muc#roomconfig</value>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
89 </field>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
90 <field var='muc#roomconfig_moderatedroom'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
91 <value>0</value>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
92 </field>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
93 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
94 </query>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
95 </iq>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
96
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
97 Romeo receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
98 <iq id="config1" from="room@conference.localhost" type="result"/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
99
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
100 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
101 <message type='groupchat' from='room@conference.localhost'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
102 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
103 <status xmlns='http://jabber.org/protocol/muc#user' code='104'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
104 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
105 </message>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
106
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
107 Juliet sends:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
108 <presence to="room@conference.localhost/Juliet2">
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
109 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
110
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
111 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
112 <presence from='room@conference.localhost/Juliet' type='unavailable'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
113 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
114 <status code='303'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
115 <item nick='Juliet2' jid="${Juliet's full JID}" affiliation='none' role='visitor'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
116 <status code='110'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
117 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
118 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
119
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
120 Juliet receives:
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
121 <presence from='room@conference.localhost/Juliet2'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
122 <x xmlns='http://jabber.org/protocol/muc#user'>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
123 <item jid="${Juliet's full JID}" affiliation='none' role='visitor'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
124 <status code='110'/>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
125 </x>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
126 </presence>
6e3fa523c969 MUC: Add testcase for #1466
Kim Alvefur <zash@zash.se>
parents:
diff changeset
127