Search in sources :

Example 6 with VolumeSpecification

use of com.amazonaws.services.elasticmapreduce.model.VolumeSpecification in project herd by FINRAOS.

the class EmrDaoImplTest method testGetEbsConfiguration.

@Test
public void testGetEbsConfiguration() {
    // Call the method under test.
    EbsConfiguration result = emrDaoImpl.getEbsConfiguration(new EmrClusterDefinitionEbsConfiguration(Collections.singletonList(new EmrClusterDefinitionEbsBlockDeviceConfig(new EmrClusterDefinitionVolumeSpecification(VOLUME_TYPE, IOPS, SIZE_IN_GB), VOLUMES_PER_INSTANCE)), EBS_OPTIMIZED));
    // Verify the external calls.
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(new EbsConfiguration().withEbsBlockDeviceConfigs(new EbsBlockDeviceConfig().withVolumeSpecification(new VolumeSpecification().withVolumeType(VOLUME_TYPE).withIops(IOPS).withSizeInGB(SIZE_IN_GB)).withVolumesPerInstance(VOLUMES_PER_INSTANCE)).withEbsOptimized(EBS_OPTIMIZED), result);
}
Also used : VolumeSpecification(com.amazonaws.services.elasticmapreduce.model.VolumeSpecification) EmrClusterDefinitionVolumeSpecification(org.finra.herd.model.api.xml.EmrClusterDefinitionVolumeSpecification) EmrClusterDefinitionEbsConfiguration(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsConfiguration) EbsConfiguration(com.amazonaws.services.elasticmapreduce.model.EbsConfiguration) EmrClusterDefinitionEbsBlockDeviceConfig(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsBlockDeviceConfig) EbsBlockDeviceConfig(com.amazonaws.services.elasticmapreduce.model.EbsBlockDeviceConfig) EmrClusterDefinitionEbsBlockDeviceConfig(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsBlockDeviceConfig) EmrClusterDefinitionEbsConfiguration(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsConfiguration) EmrClusterDefinitionVolumeSpecification(org.finra.herd.model.api.xml.EmrClusterDefinitionVolumeSpecification) Test(org.junit.Test) AbstractDaoTest(org.finra.herd.dao.AbstractDaoTest)

Example 7 with VolumeSpecification

use of com.amazonaws.services.elasticmapreduce.model.VolumeSpecification in project herd by FINRAOS.

the class EmrDaoImplTest method testGetEbsBlockDeviceConfigs.

@Test
public void testGetEbsBlockDeviceConfigs() {
    // Call the method under test.
    List<EbsBlockDeviceConfig> result = emrDaoImpl.getEbsBlockDeviceConfigs(Collections.singletonList(new EmrClusterDefinitionEbsBlockDeviceConfig(new EmrClusterDefinitionVolumeSpecification(VOLUME_TYPE, IOPS, SIZE_IN_GB), VOLUMES_PER_INSTANCE)));
    // Verify the external calls.
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(Collections.singletonList(new EbsBlockDeviceConfig().withVolumeSpecification(new VolumeSpecification().withVolumeType(VOLUME_TYPE).withIops(IOPS).withSizeInGB(SIZE_IN_GB)).withVolumesPerInstance(VOLUMES_PER_INSTANCE)), result);
}
Also used : VolumeSpecification(com.amazonaws.services.elasticmapreduce.model.VolumeSpecification) EmrClusterDefinitionVolumeSpecification(org.finra.herd.model.api.xml.EmrClusterDefinitionVolumeSpecification) EmrClusterDefinitionEbsBlockDeviceConfig(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsBlockDeviceConfig) EbsBlockDeviceConfig(com.amazonaws.services.elasticmapreduce.model.EbsBlockDeviceConfig) EmrClusterDefinitionEbsBlockDeviceConfig(org.finra.herd.model.api.xml.EmrClusterDefinitionEbsBlockDeviceConfig) EmrClusterDefinitionVolumeSpecification(org.finra.herd.model.api.xml.EmrClusterDefinitionVolumeSpecification) Test(org.junit.Test) AbstractDaoTest(org.finra.herd.dao.AbstractDaoTest)

Aggregations

VolumeSpecification (com.amazonaws.services.elasticmapreduce.model.VolumeSpecification)7 AbstractDaoTest (org.finra.herd.dao.AbstractDaoTest)6 EmrClusterDefinitionVolumeSpecification (org.finra.herd.model.api.xml.EmrClusterDefinitionVolumeSpecification)6 Test (org.junit.Test)6 EbsBlockDeviceConfig (com.amazonaws.services.elasticmapreduce.model.EbsBlockDeviceConfig)3 EmrClusterDefinitionEbsBlockDeviceConfig (org.finra.herd.model.api.xml.EmrClusterDefinitionEbsBlockDeviceConfig)3 EbsConfiguration (com.amazonaws.services.elasticmapreduce.model.EbsConfiguration)2 EmrClusterDefinitionEbsConfiguration (org.finra.herd.model.api.xml.EmrClusterDefinitionEbsConfiguration)2 Configuration (com.amazonaws.services.elasticmapreduce.model.Configuration)1 EbsBlockDevice (com.amazonaws.services.elasticmapreduce.model.EbsBlockDevice)1 InstanceFleet (com.amazonaws.services.elasticmapreduce.model.InstanceFleet)1 InstanceFleetProvisioningSpecifications (com.amazonaws.services.elasticmapreduce.model.InstanceFleetProvisioningSpecifications)1 InstanceFleetStateChangeReason (com.amazonaws.services.elasticmapreduce.model.InstanceFleetStateChangeReason)1 InstanceFleetStatus (com.amazonaws.services.elasticmapreduce.model.InstanceFleetStatus)1 InstanceFleetTimeline (com.amazonaws.services.elasticmapreduce.model.InstanceFleetTimeline)1 InstanceGroupConfig (com.amazonaws.services.elasticmapreduce.model.InstanceGroupConfig)1 InstanceTypeSpecification (com.amazonaws.services.elasticmapreduce.model.InstanceTypeSpecification)1 ListInstanceFleetsResult (com.amazonaws.services.elasticmapreduce.model.ListInstanceFleetsResult)1 SpotProvisioningSpecification (com.amazonaws.services.elasticmapreduce.model.SpotProvisioningSpecification)1 ArrayList (java.util.ArrayList)1