Search in sources :

Example 1 with SdxGenerateImageCatalogResponse

use of com.sequenceiq.sdx.api.model.SdxGenerateImageCatalogResponse in project cloudbreak by hortonworks.

the class SdxControllerTest method generateImageCatalogTest.

@Test
void generateImageCatalogTest() {
    CloudbreakImageCatalogV3 imageCatalog = mock(CloudbreakImageCatalogV3.class);
    when(sdxImageCatalogService.generateImageCatalog(SDX_CLUSTER_NAME)).thenReturn(imageCatalog);
    SdxGenerateImageCatalogResponse actual = sdxController.generateImageCatalog(SDX_CLUSTER_NAME);
    assertEquals(imageCatalog, actual.getImageCatalog());
}
Also used : CloudbreakImageCatalogV3(com.sequenceiq.cloudbreak.cloud.model.catalog.CloudbreakImageCatalogV3) SdxGenerateImageCatalogResponse(com.sequenceiq.sdx.api.model.SdxGenerateImageCatalogResponse) Test(org.junit.jupiter.api.Test)

Aggregations

CloudbreakImageCatalogV3 (com.sequenceiq.cloudbreak.cloud.model.catalog.CloudbreakImageCatalogV3)1 SdxGenerateImageCatalogResponse (com.sequenceiq.sdx.api.model.SdxGenerateImageCatalogResponse)1 Test (org.junit.jupiter.api.Test)1