use of com.amazonaws.services.ec2.model.EbsInfo in project cloudbreak by hortonworks.
the class AwsPlatformResourcesTest method testEncryptionWhenEncryptionSupportedWithNotSupportedValuePresentedShouldReturnFalse.
@Test
public void testEncryptionWhenEncryptionSupportedWithNotSupportedValuePresentedShouldReturnFalse() {
InstanceTypeInfo instanceTypeInfo = new InstanceTypeInfo();
EbsInfo ebsInfo = new EbsInfo();
ebsInfo.setEncryptionSupport("nonsupported");
instanceTypeInfo.setEbsInfo(ebsInfo);
boolean encryptionSupported = underTest.getEncryptionSupported(instanceTypeInfo);
assertFalse(encryptionSupported);
}
use of com.amazonaws.services.ec2.model.EbsInfo in project cloudbreak by hortonworks.
the class AwsPlatformResourcesTest method testEncryptionWhenEncryptionSupportedWithSupportedValuePresentedShouldReturnTrue.
@Test
public void testEncryptionWhenEncryptionSupportedWithSupportedValuePresentedShouldReturnTrue() {
InstanceTypeInfo instanceTypeInfo = new InstanceTypeInfo();
EbsInfo ebsInfo = new EbsInfo();
ebsInfo.setEncryptionSupport("supported");
instanceTypeInfo.setEbsInfo(ebsInfo);
boolean encryptionSupported = underTest.getEncryptionSupported(instanceTypeInfo);
assertTrue(encryptionSupported);
}
use of com.amazonaws.services.ec2.model.EbsInfo in project cloudbreak by hortonworks.
the class AwsPlatformResourcesTest method testEncryptionWhenEncryptionSupportedNotPresentedShouldReturnFalse.
@Test
public void testEncryptionWhenEncryptionSupportedNotPresentedShouldReturnFalse() {
InstanceTypeInfo instanceTypeInfo = new InstanceTypeInfo();
EbsInfo ebsInfo = new EbsInfo();
instanceTypeInfo.setEbsInfo(ebsInfo);
boolean encryptionSupported = underTest.getEncryptionSupported(instanceTypeInfo);
assertFalse(encryptionSupported);
}
Aggregations