From 90c7dc4390705884eee987095d656c251b018a50 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 20 May 2024 22:02:10 +0200 Subject: [PATCH] [sinttest] Add ejabberd specific behavior for mucJoinLockedRoomTest() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ejabberd does not seem to implement the MUC locked behavior specified in XEP-0045 § 7.2.10. --- .../smackx/muc/MultiUserChatOccupantIntegrationTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatOccupantIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatOccupantIntegrationTest.java index 5f19e7385..484cfae73 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatOccupantIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/muc/MultiUserChatOccupantIntegrationTest.java @@ -40,6 +40,7 @@ import org.jivesoftware.smack.util.StringUtils; import org.jivesoftware.smackx.muc.packet.MUCItem; import org.jivesoftware.smackx.muc.packet.MUCUser; +import org.igniterealtime.smack.inttest.Configuration; import org.igniterealtime.smack.inttest.SmackIntegrationTestEnvironment; import org.igniterealtime.smack.inttest.TestNotPossibleException; import org.igniterealtime.smack.inttest.annotations.SmackIntegrationTest; @@ -873,6 +874,10 @@ public class MultiUserChatOccupantIntegrationTest extends AbstractMultiUserChatI "initial configuration and therefore before the room officially exists), the service MUST refuse entry and " + "return an error to the user.") public void mucJoinLockedRoomTest() throws Exception { + if (sinttestConfiguration.compatibilityMode == Configuration.CompatibilityMode.ejabberd) { + throw new TestNotPossibleException("ejabberd does not implement MUC locked rooms as per XEP-0045 § 7.2.10"); + } + EntityBareJid mucAddress = getRandomRoom("smack-inttest-lockedroom"); MultiUserChat mucAsSeenByOne = mucManagerOne.getMultiUserChat(mucAddress);