use of com.yahoo.athenz.zts.cert.impl.FileSSHRecordStoreFactory in project athenz by yahoo.
the class InstanceCertManagerTest method testExpiredSSHCertRecordCleaner.
@Test
public void testExpiredSSHCertRecordCleaner() {
InstanceCertManager instanceManager = new InstanceCertManager(null, null, null, true, null);
FileSSHRecordStoreFactory factory = new FileSSHRecordStoreFactory();
SSHRecordStore store = factory.create(null);
assertNotNull(store);
InstanceCertManager.ExpiredSSHCertRecordCleaner cleaner = instanceManager.new ExpiredSSHCertRecordCleaner(store, 100);
// make sure no exceptions are thrown
cleaner.run();
}
Aggregations