@Test public void testNoPropertySetForKnownPlatform() { underTest = new DefaultRootVolumeSizeProvider(mockConnectors, environment); int rootVolumeSize = underTest.getForPlatform("AWS"); assertEquals(50L, rootVolumeSize); }
public int getForPlatform(String platform) { if (!platformVolumeSizeMap.containsKey(platform.toUpperCase())) { LOGGER.debug("No default root volume size found for platform: {}. Falling back to default value of 50 GB. " + "Set '{}' property if '{}' is a valid cloud provider.", platform, ROOT_VOLUME_SIZE_PROPERTY_PREFIX + platform, platform); } return platformVolumeSizeMap.getOrDefault(platform.toUpperCase(), DEFAULT_ROOT_VOLUME_SIZE); }
DefaultRootVolumeSizeProvider { public int getForPlatform(String platform) { if (!platformVolumeSizeMap.containsKey(platform.toUpperCase())) { LOGGER.debug("No default root volume size found for platform: {}. Falling back to default value of 50 GB. " + "Set '{}' property if '{}' is a valid cloud provider.", platform, ROOT_VOLUME_SIZE_PROPERTY_PREFIX + platform, platform); } return platformVolumeSizeMap.getOrDefault(platform.toUpperCase(), DEFAULT_ROOT_VOLUME_SIZE); } }
DefaultRootVolumeSizeProvider { public int getForPlatform(String platform) { if (!platformVolumeSizeMap.containsKey(platform.toUpperCase())) { LOGGER.debug("No default root volume size found for platform: {}. Falling back to default value of 50 GB. " + "Set '{}' property if '{}' is a valid cloud provider.", platform, ROOT_VOLUME_SIZE_PROPERTY_PREFIX + platform, platform); } return platformVolumeSizeMap.getOrDefault(platform.toUpperCase(), DEFAULT_ROOT_VOLUME_SIZE); } DefaultRootVolumeSizeProvider(CloudPlatformConnectors cloudPlatformConnectors, Environment environment); }
DefaultRootVolumeSizeProvider { public int getForPlatform(String platform) { if (!platformVolumeSizeMap.containsKey(platform.toUpperCase())) { LOGGER.debug("No default root volume size found for platform: {}. Falling back to default value of 50 GB. " + "Set '{}' property if '{}' is a valid cloud provider.", platform, ROOT_VOLUME_SIZE_PROPERTY_PREFIX + platform, platform); } return platformVolumeSizeMap.getOrDefault(platform.toUpperCase(), DEFAULT_ROOT_VOLUME_SIZE); } DefaultRootVolumeSizeProvider(CloudPlatformConnectors cloudPlatformConnectors, Environment environment); int getForPlatform(String platform); }
DefaultRootVolumeSizeProvider { public int getForPlatform(String platform) { if (!platformVolumeSizeMap.containsKey(platform.toUpperCase())) { LOGGER.debug("No default root volume size found for platform: {}. Falling back to default value of 50 GB. " + "Set '{}' property if '{}' is a valid cloud provider.", platform, ROOT_VOLUME_SIZE_PROPERTY_PREFIX + platform, platform); } return platformVolumeSizeMap.getOrDefault(platform.toUpperCase(), DEFAULT_ROOT_VOLUME_SIZE); } DefaultRootVolumeSizeProvider(CloudPlatformConnectors cloudPlatformConnectors, Environment environment); int getForPlatform(String platform);  }