Search in sources :

Example 1 with FileSSHRecordStoreFactory

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();
}
Also used : FileSSHRecordStoreFactory(com.yahoo.athenz.zts.cert.impl.FileSSHRecordStoreFactory) SSHRecordStore(com.yahoo.athenz.common.server.ssh.SSHRecordStore) Test(org.testng.annotations.Test)

Aggregations

SSHRecordStore (com.yahoo.athenz.common.server.ssh.SSHRecordStore)1 FileSSHRecordStoreFactory (com.yahoo.athenz.zts.cert.impl.FileSSHRecordStoreFactory)1 Test (org.testng.annotations.Test)1