Skip to content

Commit eabe7d7

Browse files
authored
Merge pull request #13543 from kristip17/CertCheckAcmeFAT
Issue 13542: Skip response check when grabbing cert for Acme FATs
2 parents 1558304 + ac0bbf7 commit eabe7d7

File tree

1 file changed

+4
-1
lines changed
  • dev/com.ibm.ws.security.acme_fat/fat/src/com/ibm/ws/security/acme/utils

1 file changed

+4
-1
lines changed

dev/com.ibm.ws.security.acme_fat/fat/src/com/ibm/ws/security/acme/utils/AcmeFatUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,10 @@ public static final <assertAndGetServerCertificate> Certificate[] assertAndGetSe
634634

635635
StatusLine statusLine = response.getStatusLine();
636636
if (statusLine.getStatusCode() != 200) {
637-
fail(methodName + ": Expected response 200, but received response: " + statusLine);
637+
/*
638+
* We can still get the certificate even if we get a non-200 response.
639+
*/
640+
Log.info(AcmeFatUtils.class, "assertAndGetServerCertificate", "Expected response 200, but received response: " + statusLine +". " + response);
638641
}
639642

640643
/*

0 commit comments

Comments
 (0)