This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new e47be43 HDDS-4736. Intermittent failure in testExpiredCertificate
(#1838)
e47be43 is described below
commit e47be43993f19802cff74305d417cdc5cece1614
Author: Symious <[email protected]>
AuthorDate: Fri Jan 29 18:08:38 2021 +0800
HDDS-4736. Intermittent failure in testExpiredCertificate (#1838)
---
.../hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java
b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java
index 29ba083..9f33dd6 100644
---
a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java
+++
b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java
@@ -329,8 +329,8 @@ public class TestOzoneBlockTokenSecretManager {
KeyPair pair, String algorithm) throws CertificateException,
IllegalStateException, IOException, OperatorCreationException {
Date from = new Date();
- Date to = new Date(from.getTime() + 100L);
- return generateTestCert(dn, pair, algorithm, from, to);
+ // Set end date same as start date to make sure the cert is expired.
+ return generateTestCert(dn, pair, algorithm, from, from);
}
private X509Certificate generateNotValidYetCert(String dn,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]