Skip to content

Commit

Permalink
Corrects the test
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Feb 20, 2024
1 parent e7eb190 commit 2bcc790
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ private static void checkCertificateValidity(String certPath) throws Exception {
Instant expiry = expiryDate.toInstant();

Period duration = getPeriodBetween(x509Certificate.getNotBefore().toInstant(), expiry);
if (certPath.endsWith("-ca.pem")) {
// root-ca.pem is already expired as the validity is only 30 days from generation
// so we just check interval to be of 30 days
assertThat(duration.getDays(), equalTo(30));
return;
}

// we check that cert is valid for total of ~10 yrs
// we don't check days as leaps years may cause flaky-ness
Expand Down

0 comments on commit 2bcc790

Please sign in to comment.