You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/03/14 16:07:00 UTC
[jira] [Resolved] (HDDS-8144) TestDefaultCertificateClient#testTimeBeforeExpiryGracePeriod() test fails as we approach DST
[ https://issues.apache.org/jira/browse/HDDS-8144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai resolved HDDS-8144.
------------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> TestDefaultCertificateClient#testTimeBeforeExpiryGracePeriod() test fails as we approach DST
> --------------------------------------------------------------------------------------------
>
> Key: HDDS-8144
> URL: https://issues.apache.org/jira/browse/HDDS-8144
> Project: Apache Ozone
> Issue Type: Bug
> Components: test
> Reporter: István Fajth
> Assignee: István Fajth
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> In my local environment the TestDefaultCertificateClient#testTimeBeforeExpiryGracePeriod() test started to fail, as we are approaching DST, and with that the return value of DefaultCertificateClient#timeBeforeExpiryGracePeriod(X509Certificate) is off by an hour.
> This is because the test sets a 28 days expiration to the certificate, but due to switch to DST, at 3am in one of the mornings we switch to 2am, therefore the certificate expiration is 28days and 1 hour away instead of the expected 0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org