Search in sources :

Example 1 with EbsInfo

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);
}
Also used : EbsInfo(com.amazonaws.services.ec2.model.EbsInfo) InstanceTypeInfo(com.amazonaws.services.ec2.model.InstanceTypeInfo) Test(org.junit.jupiter.api.Test)

Example 2 with EbsInfo

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);
}
Also used : EbsInfo(com.amazonaws.services.ec2.model.EbsInfo) InstanceTypeInfo(com.amazonaws.services.ec2.model.InstanceTypeInfo) Test(org.junit.jupiter.api.Test)

Example 3 with EbsInfo

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);
}
Also used : EbsInfo(com.amazonaws.services.ec2.model.EbsInfo) InstanceTypeInfo(com.amazonaws.services.ec2.model.InstanceTypeInfo) Test(org.junit.jupiter.api.Test)

Aggregations

EbsInfo (com.amazonaws.services.ec2.model.EbsInfo)3 InstanceTypeInfo (com.amazonaws.services.ec2.model.InstanceTypeInfo)3 Test (org.junit.jupiter.api.Test)3