@Test public void testGetApplicableImagesWhenClusterNotInAvailableState() throws CloudbreakImageCatalogException { Stack stack = getStack(Status.AVAILABLE, Status.UPDATE_FAILED); when(stackService.getByNameInWorkspaceWithLists(eq(STACK_NAME), eq(ORG_ID))).thenReturn(Optional.ofNullable(stack)); setupLoggedInUser(); thrown.expectMessage("To retrieve list of images for upgrade both stack and cluster have to be in AVAILABLE state"); thrown.expect(BadRequestException.class); underTest.getApplicableImages(ORG_ID, IMAGE_CATALOG_NAME, STACK_NAME); }
public Images getApplicableImages(Long workspaceId, String stackName) throws CloudbreakImageCatalogException { return getApplicableImages(workspaceId, CDP_DEFAULT_CATALOG_NAME, stackName); }
StackImageFilterService { public Images getApplicableImages(Long workspaceId, String stackName) throws CloudbreakImageCatalogException { return getApplicableImages(workspaceId, CDP_DEFAULT_CATALOG_NAME, stackName); } }
StackImageFilterService { public Images getApplicableImages(Long workspaceId, String stackName) throws CloudbreakImageCatalogException { return getApplicableImages(workspaceId, CDP_DEFAULT_CATALOG_NAME, stackName); }  }
StackImageFilterService { public Images getApplicableImages(Long workspaceId, String stackName) throws CloudbreakImageCatalogException { return getApplicableImages(workspaceId, CDP_DEFAULT_CATALOG_NAME, stackName); }  Images getApplicableImages(Long workspaceId, String stackName); Images getApplicableImages(Long workspaceId, String imageCatalogName, String stackName); }
StackImageFilterService { public Images getApplicableImages(Long workspaceId, String stackName) throws CloudbreakImageCatalogException { return getApplicableImages(workspaceId, CDP_DEFAULT_CATALOG_NAME, stackName); }  Images getApplicableImages(Long workspaceId, String stackName); Images getApplicableImages(Long workspaceId, String imageCatalogName, String stackName);  }