Skip to content

Commit 40db492

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 40db492

1 file changed

Lines changed: 6 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyHS512_tokenWithMatc
14661466
* @throws Exception
14671467
*/
14681468
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1469+
@SkipJavaSemeruWithFipsEnabledRule
14691470
@Test
14701471
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS256_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14711472
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS256.xml");
@@ -1479,6 +1480,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS256_tokenWithMatc
14791480
* @throws Exception
14801481
*/
14811482
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1483+
@SkipJavaSemeruWithFipsEnabledRule
14821484
@Test
14831485
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS384_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14841486
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS384.xml");
@@ -1492,6 +1494,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS384_tokenWithMatc
14921494
* @throws Exception
14931495
*/
14941496
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1497+
@SkipJavaSemeruWithFipsEnabledRule
14951498
@Test
14961499
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowOnlyRS512_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
14971500
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RS512.xml");
@@ -1556,6 +1559,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllHSAlgs_tokenWithMatc
15561559
* @throws Exception
15571560
*/
15581561
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1562+
@SkipJavaSemeruWithFipsEnabledRule
15591563
@Test
15601564
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllRSAlgs_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
15611565
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_RSAlgs.xml");
@@ -1583,6 +1587,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowAllESAlgs_tokenWithMatc
15831587
*/
15841588
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
15851589
@Mode(TestMode.LITE)
1590+
@SkipJavaSemeruWithFipsEnabledRule
15861591
@Test
15871592
public void MPJwtConfigUsingBuilderTests_FromHeader_AllowMixedAlgs_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
15881593
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER_allow_HS256RS384ES512.xml");
@@ -1595,6 +1600,7 @@ public void MPJwtConfigUsingBuilderTests_FromHeader_AllowMixedAlgs_tokenWithMatc
15951600
* @throws Exception
15961601
*/
15971602
@ExpectedFFDC({ "org.jose4j.jwt.consumer.InvalidJwtSignatureException" })
1603+
@SkipJavaSemeruWithFipsEnabledRule
15981604
@Test
15991605
public void MPJwtConfigUsingBuilderTests_FromHeader_tokenWithMatchAndMisMatchSigAlgs() throws Exception {
16001606
resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_sigAlg_FROM_HEADER.xml");

0 commit comments

Comments
 (0)