use of com.emc.vipr.model.sys.eventhandler.ConnectEmcFtps in project coprhd-controller by CoprHD.
the class ConfigServiceTest method testFtps.
@Test
public void testFtps() {
ConnectEmcFtps ftps = new ConnectEmcFtps();
ftps.setSafeEncryption("no");
ftps.setEmailServer("mailhub.lss.emc.com");
ftps.setNotifyEmailAddress("joe.customer@customer.com");
try {
ftps.setHostName("corpusfep3.emc.com");
} catch (Exception e) {
Assert.fail();
}
PropertyInfoUpdate propInfo = ConfigService.ConfigureConnectEmc.configureFtps(ftps);
Assert.assertEquals(propInfo.getProperty("system_connectemc_encrypt"), ftps.getSafeEncryption());
Assert.assertEquals(propInfo.getProperty("system_connectemc_ftps_hostname"), ftps.getHostName());
Assert.assertEquals(propInfo.getProperty("system_connectemc_smtp_server"), ftps.getEmailServer());
Assert.assertEquals(propInfo.getProperty("system_connectemc_smtp_to"), ftps.getNotifyEmailAddress());
}
Aggregations