Search in sources :

Example 1 with ConnectEmcFtps

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());
}
Also used : ConnectEmcFtps(com.emc.vipr.model.sys.eventhandler.ConnectEmcFtps) PropertyInfoUpdate(com.emc.storageos.model.property.PropertyInfoUpdate) Test(org.junit.Test)

Aggregations

PropertyInfoUpdate (com.emc.storageos.model.property.PropertyInfoUpdate)1 ConnectEmcFtps (com.emc.vipr.model.sys.eventhandler.ConnectEmcFtps)1 Test (org.junit.Test)1