From 66841d6e4ce6187ec6a06a547b7e9f4192526b92 Mon Sep 17 00:00:00 2001 From: d036670 Date: Tue, 24 Oct 2023 14:23:41 +0200 Subject: [PATCH] allow empty secret int test with default policy because minlength is 0, only with strict it should fail --- .../uaa/zone/ZoneAwareClientSecretPolicyValidatorTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/test/java/org/cloudfoundry/identity/uaa/zone/ZoneAwareClientSecretPolicyValidatorTests.java b/server/src/test/java/org/cloudfoundry/identity/uaa/zone/ZoneAwareClientSecretPolicyValidatorTests.java index 19fc9c9db49..e3dc5939eb0 100644 --- a/server/src/test/java/org/cloudfoundry/identity/uaa/zone/ZoneAwareClientSecretPolicyValidatorTests.java +++ b/server/src/test/java/org/cloudfoundry/identity/uaa/zone/ZoneAwareClientSecretPolicyValidatorTests.java @@ -39,6 +39,8 @@ void setUp() { @Test void testEmptyClientSecret() { zone.getConfig().setClientSecretPolicy(defaultPolicy); + validator.validate(TEST_SECRET_1); + zone.getConfig().setClientSecretPolicy(strictPolicy); assertThrows(InvalidClientSecretException.class, () -> validator.validate(TEST_SECRET_1)); }