Skip to content

Commit d4d8422

Browse files
committed
Skip FromHeader RSA tests when FIPS140-3 is enabled
Bring in to line the FromHeader RSA tests to the sigAlg tests by skipping when FIPS140-3 with Semeru is enabled
1 parent 8ab9ef6 commit d4d8422

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

dev/com.ibm.ws.security.mp.jwt.1.1_fat.commonTest/fat/src/com/ibm/ws/security/mp/jwt11/fat/MPJwtConfigUsingBuilderTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyHS256_tokenWithMatc
14341434
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_HS256.xml");
14351435
genericSigAlgTest(Constants.SIGALG_FROMHEADER, Arrays.asList(Constants.SIGALG_HS256));
14361436
}
1437+
}
14371438

14381439
/**
14391440
* Test FROM_HEADER allowing only HS384 - tests all algorithms, expects only HS384 to succeed
@@ -1466,6 +1467,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyHS512_tokenWithMatc
14661467
* @throws Exception
14671468
*/
14681469
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1470+
@SkipJavaSemeruWithFipsEnabledRule
14691471
@Test
14701472
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS256_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14711473
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS256.xml");
@@ -1479,6 +1481,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS256_tokenWithMatc
14791481
* @throws Exception
14801482
*/
14811483
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1484+
@SkipJavaSemeruWithFipsEnabledRule
14821485
@Test
14831486
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS384_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14841487
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS384.xml");
@@ -1492,6 +1495,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS384_tokenWithMatc
14921495
* @throws Exception
14931496
*/
14941497
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1498+
@SkipJavaSemeruWithFipsEnabledRule
14951499
@Test
14961500
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS512_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14971501
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS512.xml");
@@ -1556,6 +1560,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllHSAlgs_tokenWithMatc
15561560
* @throws Exception
15571561
*/
15581562
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1563+
@SkipJavaSemeruWithFipsEnabledRule
15591564
@Test
15601565
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllRSAlgs_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
15611566
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RSAlgs.xml");
@@ -1583,6 +1588,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllESAlgs_tokenWithMatc
15831588
*/
15841589
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
15851590
@Mode(TestMode.LITE)
1591+
@SkipJavaSemeruWithFipsEnabledRule
15861592
@Test
15871593
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowMixedAlgs_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
15881594
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_HS256RS384ES512.xml");
@@ -1595,6 +1601,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowMixedAlgs_tokenWithMatc
15951601
* @throws Exception
15961602
*/
15971603
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1604+
@SkipJavaSemeruWithFipsEnabledRule
15981605
@Test
15991606
public void MPJwtConfigUsingBuilderTests_FromHeader_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
16001607
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER.xml");

0 commit comments

Comments
 (0)