@Test public void testImageCatalogFilterToAmazonlinux() throws CloudbreakImageCatalogException, IOException { String path = getPath(CB_IMAGE_CATALOG_V2_JSON); ReflectionTestUtils.setField(underTest, "etcConfigDir", path); ReflectionTestUtils.setField(underTest, "enabledLinuxTypes", CB_AMAZONLINUX_FILTER); CloudbreakImageCatalogV3 actualCatalog = underTest.getImageCatalogV3(CB_IMAGE_CATALOG_V2_JSON); List<String> actualOsTypes = getImageCatalogOses(actualCatalog); assertEquals(CB_AMAZONLINUX_FILTER, actualOsTypes); ObjectMapper objectMapper = new ObjectMapper(); CloudbreakImageCatalogV3 expectedCatalog = objectMapper.readValue(Paths.get(path, CB_IMAGE_CATALOG_V2_JSON).toFile(), CloudbreakImageCatalogV3.class); assertEquals(mapToUuid(expectedCatalog.getImages().getBaseImages()), mapToUuid(actualCatalog.getImages().getBaseImages())); assertEquals(mapToUuid(Collections.emptyList()), mapToUuid(actualCatalog.getImages().getCdhImages())); assertEquals(1, expectedCatalog.getImages().getCdhImages().size()); }
public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); } }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl); CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl, boolean forceRefresh); }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl); CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl, boolean forceRefresh);  }