Software /
code /
prosody
Comparison
spec/scansion/muc_whois_anyone_member.scs @ 9620:ddcb28c8f64b 0.11
MUC: Add scanison test case for #1230
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 12 Nov 2018 18:25:40 +0100 |
child | 11712:d117b92fd8e4 |
comparison
equal
deleted
inserted
replaced
9619:7172077c0a53 | 9620:ddcb28c8f64b |
---|---|
1 # MUC: Allow members to fetch the affiliation lists in open non-anonymous rooms | |
2 | |
3 [Client] Romeo | |
4 jid: romeo@localhost/MsliYo9C | |
5 password: password | |
6 | |
7 [Client] Juliet | |
8 jid: juliet@localhost/vJrUtY4Z | |
9 password: password | |
10 | |
11 ----- | |
12 | |
13 Romeo connects | |
14 | |
15 Romeo sends: | |
16 <presence to='issue1230@conference.localhost/romeo'> | |
17 <x xmlns='http://jabber.org/protocol/muc'/> | |
18 </presence> | |
19 | |
20 Romeo receives: | |
21 <presence from='issue1230@conference.localhost/romeo'> | |
22 <x xmlns='http://jabber.org/protocol/muc#user'> | |
23 <status code='201'/> | |
24 <item jid="${Romeo's JID}" role='moderator' affiliation='owner'/> | |
25 <status code='110'/> | |
26 </x> | |
27 </presence> | |
28 | |
29 Romeo receives: | |
30 <message from='issue1230@conference.localhost' type='groupchat'> | |
31 <subject/> | |
32 </message> | |
33 | |
34 Romeo sends: | |
35 <iq id='lx3' type='set' to='issue1230@conference.localhost'> | |
36 <query xmlns='http://jabber.org/protocol/muc#owner'> | |
37 <x type='submit' xmlns='jabber:x:data'> | |
38 <field var='FORM_TYPE'> | |
39 <value>http://jabber.org/protocol/muc#roomconfig</value> | |
40 </field> | |
41 <field var='muc#roomconfig_whois'> | |
42 <value>anyone</value> | |
43 </field> | |
44 </x> | |
45 </query> | |
46 </iq> | |
47 | |
48 Romeo receives: | |
49 <iq from='issue1230@conference.localhost' type='result' id='lx3'/> | |
50 | |
51 Romeo receives: | |
52 <message from='issue1230@conference.localhost' type='groupchat'> | |
53 <x xmlns='http://jabber.org/protocol/muc#user'> | |
54 <status code='172'/> | |
55 </x> | |
56 </message> | |
57 | |
58 Juliet connects | |
59 | |
60 Juliet sends: | |
61 <presence to='issue1230@conference.localhost/juliet'> | |
62 <x xmlns='http://jabber.org/protocol/muc'/> | |
63 </presence> | |
64 | |
65 Juliet receives: | |
66 <presence from='issue1230@conference.localhost/romeo'> | |
67 <x xmlns='http://jabber.org/protocol/muc#user'> | |
68 <item jid="${Romeo's JID}" role='moderator' affiliation='owner'/> | |
69 </x> | |
70 </presence> | |
71 | |
72 Juliet receives: | |
73 <presence from='issue1230@conference.localhost/juliet'> | |
74 <x xmlns='http://jabber.org/protocol/muc#user'> | |
75 <status code='100'/> | |
76 <item jid="${Juliet's JID}" role='participant' affiliation='none'/> | |
77 <status code='110'/> | |
78 </x> | |
79 </presence> | |
80 | |
81 Juliet receives: | |
82 <message from='issue1230@conference.localhost' type='groupchat'> | |
83 <subject/> | |
84 </message> | |
85 | |
86 Juliet sends: | |
87 <iq id='lx2' type='get' to='issue1230@conference.localhost'> | |
88 <query xmlns='http://jabber.org/protocol/muc#admin'> | |
89 <item affiliation='member'/> | |
90 </query> | |
91 </iq> | |
92 | |
93 Juliet receives: | |
94 <iq from='issue1230@conference.localhost' type='result' id='lx2'> | |
95 <query xmlns='http://jabber.org/protocol/muc#admin'/> | |
96 </iq> | |
97 | |
98 Juliet disconnects | |
99 | |
100 Romeo disconnects | |
101 |