equal
deleted
inserted
replaced
1 # MUC password test |
|
2 # Ensures that setting and unsetting a MUC password works, and that the password is |
|
3 # required to join a password-protected room. |
|
4 |
|
5 ## prosody-0.9 result: fails because of missing 201 status code (related to issue #328) |
|
6 ## prosody-0.10 result: fails because of missing 201 status code (related to issue #328) |
|
7 |
|
8 [Client] Romeo |
1 [Client] Romeo |
9 jid: user@localhost |
2 jid: user@localhost |
10 password: password |
3 password: password |
11 |
4 |
12 [Client] Juliet |
5 [Client] Juliet |
61 <x xmlns="http://jabber.org/protocol/muc"/> |
54 <x xmlns="http://jabber.org/protocol/muc"/> |
62 </presence> |
55 </presence> |
63 |
56 |
64 Juliet receives: |
57 Juliet receives: |
65 <presence from="room@conference.localhost/Juliet" type="error"> |
58 <presence from="room@conference.localhost/Juliet" type="error"> |
66 <error type="auth"> |
59 <error type="auth" code="401"> |
67 <not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
60 <not-authorized xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> |
68 </error> |
61 </error> |
69 </presence> |
62 </presence> |
70 |
63 |
71 # Retry with the correct password |
64 # Retry with the correct password |
106 <x xmlns='jabber:x:data' type='submit'> |
99 <x xmlns='jabber:x:data' type='submit'> |
107 <field var='FORM_TYPE'> |
100 <field var='FORM_TYPE'> |
108 <value>http://jabber.org/protocol/muc#roomconfig</value> |
101 <value>http://jabber.org/protocol/muc#roomconfig</value> |
109 </field> |
102 </field> |
110 <field var='muc#roomconfig_roomsecret'> |
103 <field var='muc#roomconfig_roomsecret'> |
111 <value></value> |
|
112 </field> |
104 </field> |
113 </x> |
105 </x> |
114 </query> |
106 </query> |
115 </iq> |
107 </iq> |
116 |
108 |