Skip to content

Commit 93c2d1c

Browse files
Disable spring-security-rsa tests on Windows
Issue gh-14202
1 parent 5b281ee commit 93c2d1c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crypto/src/test/java/org/springframework/security/crypto/encrypt/KeyStoreKeyFactoryTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package org.springframework.security.crypto.encrypt;
1818

1919
import org.junit.jupiter.api.Test;
20+
import org.junit.jupiter.api.condition.DisabledOnOs;
21+
import org.junit.jupiter.api.condition.OS;
2022

2123
import org.springframework.core.io.ClassPathResource;
2224

@@ -26,6 +28,7 @@
2628
* @author Dave Syer
2729
*
2830
*/
31+
@DisabledOnOs(OS.WINDOWS)
2932
public class KeyStoreKeyFactoryTests {
3033

3134
@Test

crypto/src/test/java/org/springframework/security/crypto/encrypt/RsaKeyHelperTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@
2020
import java.security.KeyPair;
2121

2222
import org.junit.jupiter.api.Test;
23+
import org.junit.jupiter.api.condition.DisabledOnOs;
24+
import org.junit.jupiter.api.condition.OS;
2325

2426
import org.springframework.core.io.ClassPathResource;
2527
import org.springframework.util.StreamUtils;
2628

2729
import static org.assertj.core.api.Assertions.assertThat;
2830

31+
@DisabledOnOs(OS.WINDOWS)
2932
public class RsaKeyHelperTests {
3033

3134
@Test

0 commit comments

Comments
 (0)