# MUC password test
# Ensures that setting and unsetting a MUC password works, and that the password is
# required to join a password-protected room.
## prosody-0.9 result: fails because of missing 201 status code (related to issue #328)
## prosody-0.10 result: fails because of missing 201 status code (related to issue #328)
[Client] Romeo
jid: user@localhost
password: password
[Client] Juliet
jid: user2@localhost
password: password
-----
Romeo connects
Romeo sends:
Romeo receives:
Romeo receives:
# Submit config form
Romeo sends:
http://jabber.org/protocol/muc#roomconfig
cauldronburn
Romeo receives:
# Juliet connects, and tries to join the room (password-protected)
Juliet connects
Juliet sends:
Juliet receives:
# Retry with the correct password
Juliet sends:
cauldronburn
Juliet receives:
Juliet receives:
Juliet receives:
Romeo receives:
# Ok, now Juliet leaves, and Romeo unsets the password
Juliet sends:
Romeo receives:
Juliet receives:
# Remove room password
Romeo sends:
http://jabber.org/protocol/muc#roomconfig
# Config change success
Romeo receives:
# Notification of room configuration update
Romeo receives:
# Juliet tries to join (should succeed)
Juliet sends:
# Notification of Romeo's presence in the room
Juliet receives:
Juliet receives:
# Room topic
Juliet receives:
Romeo receives: