Search in sources :

Example 31 with GATEWAY

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceMetadataType.GATEWAY in project cloudbreak by hortonworks.

the class PlatformRecommendationToPlatformRecommendationV4ResponseConverter method convert.

public RecommendationV4Response convert(PlatformRecommendation source) {
    Map<String, VmTypeV4Response> result = new HashMap<>();
    source.getRecommendations().forEach((hostGroupName, vm) -> result.put(hostGroupName, vmTypeToVmTypeV4ResponseConverter.convert(vm)));
    Set<VmTypeV4Response> vmTypes = source.getVirtualMachines().stream().map(vmType -> vmTypeToVmTypeV4ResponseConverter.convert(vmType)).collect(Collectors.toSet());
    Set<DiskV4Response> diskResponses = new HashSet<>();
    for (Entry<DiskType, DisplayName> diskTypeDisplayName : source.getDiskTypes().displayNames().entrySet()) {
        for (Entry<String, VolumeParameterType> volumeParameterType : source.getDiskTypes().diskMapping().entrySet()) {
            if (diskTypeDisplayName.getKey().value().equals(volumeParameterType.getKey())) {
                DiskV4Response diskResponse = new DiskV4Response(diskTypeDisplayName.getKey().value(), volumeParameterType.getValue().name(), diskTypeDisplayName.getValue().value());
                diskResponses.add(diskResponse);
            }
        }
    }
    Map<String, InstanceCountV4Response> instanceCounts = new TreeMap<>();
    source.getInstanceCounts().forEach((hostGroupName, instanceCount) -> instanceCounts.put(hostGroupName, new InstanceCountV4Response(instanceCount.getMinimumCount(), instanceCount.getMaximumCount())));
    GatewayRecommendationV4Response gateway = new GatewayRecommendationV4Response(source.getGatewayRecommendation().getHostGroups());
    AutoscaleRecommendationV4Response autoscaleRecommendation = new AutoscaleRecommendationV4Response(source.getAutoscaleRecommendation().getTimeBasedHostGroups(), source.getAutoscaleRecommendation().getLoadBasedHostGroups());
    ResizeRecommendationV4Response resizeRecommendation = new ResizeRecommendationV4Response(source.getResizeRecommendation().getScaleUpHostGroups(), source.getResizeRecommendation().getScaleDownHostGroups());
    return new RecommendationV4Response(result, vmTypes, diskResponses, instanceCounts, gateway, autoscaleRecommendation, resizeRecommendation);
}
Also used : DisplayName(com.sequenceiq.cloudbreak.cloud.model.DisplayName) ResizeRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ResizeRecommendationV4Response) PlatformRecommendation(com.sequenceiq.cloudbreak.cloud.model.PlatformRecommendation) DiskType(com.sequenceiq.cloudbreak.cloud.model.DiskType) Set(java.util.Set) DiskV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.DiskV4Response) HashMap(java.util.HashMap) VmTypeV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.VmTypeV4Response) Collectors(java.util.stream.Collectors) VmTypeToVmTypeV4ResponseConverter(com.sequenceiq.cloudbreak.converter.v4.connectors.VmTypeToVmTypeV4ResponseConverter) HashSet(java.util.HashSet) Inject(javax.inject.Inject) AutoscaleRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.AutoscaleRecommendationV4Response) Component(org.springframework.stereotype.Component) TreeMap(java.util.TreeMap) InstanceCountV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.InstanceCountV4Response) VolumeParameterType(com.sequenceiq.cloudbreak.cloud.model.VolumeParameterType) Map(java.util.Map) Entry(java.util.Map.Entry) GatewayRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.GatewayRecommendationV4Response) RecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.blueprint.responses.RecommendationV4Response) HashMap(java.util.HashMap) VmTypeV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.VmTypeV4Response) VolumeParameterType(com.sequenceiq.cloudbreak.cloud.model.VolumeParameterType) InstanceCountV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.InstanceCountV4Response) TreeMap(java.util.TreeMap) DiskType(com.sequenceiq.cloudbreak.cloud.model.DiskType) DiskV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.DiskV4Response) AutoscaleRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.AutoscaleRecommendationV4Response) ResizeRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ResizeRecommendationV4Response) GatewayRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.GatewayRecommendationV4Response) DisplayName(com.sequenceiq.cloudbreak.cloud.model.DisplayName) ResizeRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.ResizeRecommendationV4Response) AutoscaleRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.AutoscaleRecommendationV4Response) GatewayRecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.GatewayRecommendationV4Response) RecommendationV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.blueprint.responses.RecommendationV4Response) HashSet(java.util.HashSet)

Example 32 with GATEWAY

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceMetadataType.GATEWAY in project cloudbreak by hortonworks.

the class OpdbServiceEndpointCollectorTest method testPrepareClusterExposedServices.

@Test
public void testPrepareClusterExposedServices() {
    Cluster cluster = createClusterWithComponents(GatewayType.INDIVIDUAL);
    cluster.getGateway().setGatewayPort(443);
    mockTemplateComponents();
    mockComponentLocator(Lists.newArrayList("10.0.0.1"));
    Map<String, Collection<ClusterExposedServiceV4Response>> clusterExposedServicesMap = underTest.prepareClusterExposedServices(cluster, "10.0.0.1");
    assertEquals(clusterExposedServicesMap.toString(), 2L, clusterExposedServicesMap.keySet().size());
    Collection<ClusterExposedServiceV4Response> proxyServices = clusterExposedServicesMap.get("proxy");
    Collection<ClusterExposedServiceV4Response> proxyApiServices = clusterExposedServicesMap.get("proxy-api");
    assertNotNull("Topology proxy services was null", proxyServices);
    assertNotNull("Topology proxy API services was null", proxyApiServices);
    Set<String> proxyServiceNames = proxyServices.stream().map(ClusterExposedServiceV4Response::getKnoxService).collect(Collectors.toSet());
    Set<String> proxyApiServiceNames = proxyApiServices.stream().map(ClusterExposedServiceV4Response::getKnoxService).collect(Collectors.toSet());
    assertEquals(proxyServiceNames.toString(), 2, proxyServiceNames.size());
    assertEquals(proxyApiServiceNames.toString(), 4, proxyApiServiceNames.size());
    assertEquals(new HashSet<>(Arrays.asList("CM-UI", "HBASEUI")), proxyServiceNames);
    assertEquals(new HashSet<>(Arrays.asList("CM-API", "HBASEJARS", "WEBHBASE", "AVATICA")), proxyApiServiceNames);
    Optional<ClusterExposedServiceV4Response> hbasejars = proxyApiServices.stream().filter(service -> service.getKnoxService().equals("HBASEJARS")).findFirst();
    Optional<ClusterExposedServiceV4Response> avatica = proxyApiServices.stream().filter(service -> service.getKnoxService().equals("AVATICA")).findFirst();
    assertTrue(hbasejars.isPresent());
    assertTrue(avatica.isPresent());
    assertEquals("https://10.0.0.1/gateway-path/proxy-api/hbase/jars", hbasejars.get().getServiceUrl());
    assertEquals("https://10.0.0.1/gateway-path/proxy-api/avatica/", avatica.get().getServiceUrl());
}
Also used : Arrays(java.util.Arrays) EntitlementService(com.sequenceiq.cloudbreak.auth.altus.EntitlementService) ClusterExposedServiceV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.topology.ClusterExposedServiceV4Response) ArgumentMatchers.eq(org.mockito.ArgumentMatchers.eq) GatewayTopologyV4RequestToExposedServicesConverter(com.sequenceiq.cloudbreak.converter.v4.stacks.cluster.gateway.topology.GatewayTopologyV4RequestToExposedServicesConverter) JsonUtil(com.sequenceiq.cloudbreak.common.json.JsonUtil) CmTemplateProcessorFactory(com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessorFactory) Orchestrator(com.sequenceiq.cloudbreak.domain.Orchestrator) ValidationResult(com.sequenceiq.cloudbreak.validation.ValidationResult) Map(java.util.Map) Gateway(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.Gateway) ExposedServiceCollector(com.sequenceiq.cloudbreak.api.service.ExposedServiceCollector) Blueprint(com.sequenceiq.cloudbreak.domain.Blueprint) ExposedServiceListValidator(com.sequenceiq.cloudbreak.controller.validation.stack.cluster.gateway.ExposedServiceListValidator) MultiValuedMap(org.apache.commons.collections4.MultiValuedMap) Collection(java.util.Collection) Set(java.util.Set) ExposedService(com.sequenceiq.cloudbreak.api.service.ExposedService) ArgumentMatchers.anyList(org.mockito.ArgumentMatchers.anyList) Collectors(java.util.stream.Collectors) StandardCharsets(java.nio.charset.StandardCharsets) Json(com.sequenceiq.cloudbreak.common.json.Json) IOUtils(org.apache.commons.io.IOUtils) ServiceComponent(com.sequenceiq.cloudbreak.template.model.ServiceComponent) List(java.util.List) GatewayType(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.GatewayType) StackServiceComponentDescriptors(com.sequenceiq.cloudbreak.cmtemplate.validation.StackServiceComponentDescriptors) Tenant(com.sequenceiq.cloudbreak.workspace.model.Tenant) Optional(java.util.Optional) ExposedServices(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.ExposedServices) CmTemplateProcessor(com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor) MockitoJUnitRunner(org.mockito.junit.MockitoJUnitRunner) GatewayTopologyV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.topology.GatewayTopologyV4Request) Mockito.mock(org.mockito.Mockito.mock) ArgumentMatchers.any(org.mockito.ArgumentMatchers.any) Stack(com.sequenceiq.cloudbreak.domain.stack.Stack) Cluster(com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster) Mock(org.mockito.Mock) RunWith(org.junit.runner.RunWith) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) ArrayListValuedHashMap(org.apache.commons.collections4.multimap.ArrayListValuedHashMap) Lists(com.google.common.collect.Lists) FileReaderUtils(com.sequenceiq.cloudbreak.util.FileReaderUtils) NoSuchElementException(java.util.NoSuchElementException) Before(org.junit.Before) InjectMocks(org.mockito.InjectMocks) Assert.assertNotNull(org.junit.Assert.assertNotNull) Assert.assertTrue(org.junit.Assert.assertTrue) ReflectionTestUtils(org.springframework.test.util.ReflectionTestUtils) IOException(java.io.IOException) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) Maps(com.google.common.collect.Maps) Workspace(com.sequenceiq.cloudbreak.workspace.model.Workspace) GatewayTopology(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.GatewayTopology) BlueprintService(com.sequenceiq.cloudbreak.service.blueprint.BlueprintService) ComponentLocatorService(com.sequenceiq.cloudbreak.service.blueprint.ComponentLocatorService) Collections(java.util.Collections) Assert.assertEquals(org.junit.Assert.assertEquals) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) InputStream(java.io.InputStream) Cluster(com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster) Collection(java.util.Collection) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) ClusterExposedServiceV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.topology.ClusterExposedServiceV4Response) Test(org.junit.Test)

Example 33 with GATEWAY

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceMetadataType.GATEWAY in project cloudbreak by hortonworks.

the class ServiceEndpointCollectorTest method testPrepareClusterExposedServices.

@Test
public void testPrepareClusterExposedServices() {
    Cluster cluster = createClusterWithComponents(new ExposedService[] { exposedService("ATLAS") }, new ExposedService[] { exposedService("HIVE_SERVER"), exposedService("WEBHDFS") }, GatewayType.INDIVIDUAL);
    cluster.getGateway().setGatewayPort(443);
    mockBlueprintTextProcessor();
    mockComponentLocator(Lists.newArrayList("10.0.0.1"));
    Map<String, Collection<ClusterExposedServiceV4Response>> clusterExposedServicesMap = underTest.prepareClusterExposedServices(cluster, "10.0.0.1");
    assertEquals(4L, clusterExposedServicesMap.keySet().size());
    Collection<ClusterExposedServiceV4Response> topology2ClusterExposedServiceV4Responses = clusterExposedServicesMap.get("topology2");
    Optional<ClusterExposedServiceV4Response> webHDFS = topology2ClusterExposedServiceV4Responses.stream().filter(service -> "WEBHDFS".equals(service.getKnoxService())).findFirst();
    if (webHDFS.isPresent()) {
        assertEquals("https://10.0.0.1/gateway-path/topology2/webhdfs/v1", webHDFS.get().getServiceUrl());
        assertEquals("WEBHDFS", webHDFS.get().getKnoxService());
        assertEquals("WebHDFS", webHDFS.get().getDisplayName());
        assertEquals("NAMENODE", webHDFS.get().getServiceName());
        assertTrue(webHDFS.get().isOpen());
    }
    Optional<ClusterExposedServiceV4Response> sparkHistoryUI = topology2ClusterExposedServiceV4Responses.stream().filter(service -> "SPARKHISTORYUI".equals(service.getKnoxService())).findFirst();
    if (sparkHistoryUI.isPresent()) {
        assertEquals("https://10.0.0.1/gateway-path/topology2/sparkhistory/", sparkHistoryUI.get().getServiceUrl());
        assertEquals("SPARKHISTORYUI", sparkHistoryUI.get().getKnoxService());
        assertEquals("Spark 1.x History Server", sparkHistoryUI.get().getDisplayName());
        assertEquals("SPARK_YARN_HISTORY_SERVER", sparkHistoryUI.get().getServiceName());
        assertFalse(sparkHistoryUI.get().isOpen());
    }
    Optional<ClusterExposedServiceV4Response> hiveServer = topology2ClusterExposedServiceV4Responses.stream().filter(service -> "HIVE".equals(service.getKnoxService())).findFirst();
    if (hiveServer.isPresent()) {
        assertEquals("jdbc:hive2://10.0.0.1/;ssl=true;sslTrustStore=/cert/gateway.jks;trustStorePassword=${GATEWAY_JKS_PASSWORD};" + "transportMode=http;httpPath=gateway-path/topology2/hive", hiveServer.get().getServiceUrl());
        assertEquals("HIVE", hiveServer.get().getKnoxService());
        assertEquals("Hive Server", hiveServer.get().getDisplayName());
        assertEquals("HIVE_SERVER", hiveServer.get().getServiceName());
        assertTrue(hiveServer.get().isOpen());
    }
}
Also used : Arrays(java.util.Arrays) EntitlementService(com.sequenceiq.cloudbreak.auth.altus.EntitlementService) ClusterExposedServiceV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.topology.ClusterExposedServiceV4Response) ArgumentMatchers.eq(org.mockito.ArgumentMatchers.eq) GatewayTopologyV4RequestToExposedServicesConverter(com.sequenceiq.cloudbreak.converter.v4.stacks.cluster.gateway.topology.GatewayTopologyV4RequestToExposedServicesConverter) CmTemplateProcessorFactory(com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessorFactory) Orchestrator(com.sequenceiq.cloudbreak.domain.Orchestrator) ValidationResult(com.sequenceiq.cloudbreak.validation.ValidationResult) Map(java.util.Map) Gateway(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.Gateway) ExposedServiceCollector(com.sequenceiq.cloudbreak.api.service.ExposedServiceCollector) Blueprint(com.sequenceiq.cloudbreak.domain.Blueprint) ExposedServiceListValidator(com.sequenceiq.cloudbreak.controller.validation.stack.cluster.gateway.ExposedServiceListValidator) Collection(java.util.Collection) Set(java.util.Set) ExposedService(com.sequenceiq.cloudbreak.api.service.ExposedService) ArgumentMatchers.anyList(org.mockito.ArgumentMatchers.anyList) Collectors(java.util.stream.Collectors) Sets(com.google.common.collect.Sets) Json(com.sequenceiq.cloudbreak.common.json.Json) List(java.util.List) GatewayType(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.GatewayType) StackServiceComponentDescriptors(com.sequenceiq.cloudbreak.cmtemplate.validation.StackServiceComponentDescriptors) Assert.assertFalse(org.junit.Assert.assertFalse) Tenant(com.sequenceiq.cloudbreak.workspace.model.Tenant) Optional(java.util.Optional) ExposedServices(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.ExposedServices) CmTemplateProcessor(com.sequenceiq.cloudbreak.cmtemplate.CmTemplateProcessor) MockitoJUnitRunner(org.mockito.junit.MockitoJUnitRunner) GatewayTopologyV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.topology.GatewayTopologyV4Request) Mockito.mock(org.mockito.Mockito.mock) ArgumentMatchers.any(org.mockito.ArgumentMatchers.any) Stack(com.sequenceiq.cloudbreak.domain.stack.Stack) Cluster(com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster) ArgumentMatchers.anyLong(org.mockito.ArgumentMatchers.anyLong) ExposedServiceUtil.exposedService(com.sequenceiq.cloudbreak.controller.validation.stack.cluster.gateway.ExposedServiceUtil.exposedService) Mock(org.mockito.Mock) RunWith(org.junit.runner.RunWith) ArrayList(java.util.ArrayList) Lists(com.google.common.collect.Lists) ExposedServiceV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ExposedServiceV4Response) FileReaderUtils(com.sequenceiq.cloudbreak.util.FileReaderUtils) Before(org.junit.Before) InjectMocks(org.mockito.InjectMocks) Collections.emptyMap(java.util.Collections.emptyMap) Assert.assertTrue(org.junit.Assert.assertTrue) ReflectionTestUtils(org.springframework.test.util.ReflectionTestUtils) IOException(java.io.IOException) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) Maps(com.google.common.collect.Maps) Workspace(com.sequenceiq.cloudbreak.workspace.model.Workspace) GatewayTopology(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.GatewayTopology) BlueprintService(com.sequenceiq.cloudbreak.service.blueprint.BlueprintService) ComponentLocatorService(com.sequenceiq.cloudbreak.service.blueprint.ComponentLocatorService) Assert.assertEquals(org.junit.Assert.assertEquals) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) Cluster(com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster) Collection(java.util.Collection) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) ClusterExposedServiceV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.response.cluster.gateway.topology.ClusterExposedServiceV4Response) Test(org.junit.Test)

Example 34 with GATEWAY

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceMetadataType.GATEWAY in project cloudbreak by hortonworks.

the class GatewayConvertUtilTest method testGatewayPathConversionWhenPathIsInGatewayJson.

@Test
public void testGatewayPathConversionWhenPathIsInGatewayJson() {
    Gateway gateway = new Gateway();
    String gatewayPath = "gatewayPath";
    GatewayV4Request gatewayJson = new GatewayV4Request();
    gatewayJson.setPath(gatewayPath);
    underTest.setGatewayPathAndSsoProvider(gatewayJson, gateway);
    assertEquals('/' + gateway.getPath() + "/sso/api/v1/websso", gateway.getSsoProvider());
    assertEquals(gatewayPath, gateway.getPath());
    assertEquals('/' + gateway.getPath() + "/sso/api/v1/websso", gateway.getSsoProvider());
}
Also used : GatewayV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.GatewayV4Request) Gateway(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.Gateway) Test(org.junit.Test)

Example 35 with GATEWAY

use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceMetadataType.GATEWAY in project cloudbreak by hortonworks.

the class GatewayConvertUtilTest method testSetMultipleTopologies.

@Test
public void testSetMultipleTopologies() {
    GatewayV4Request source = new GatewayV4Request();
    GatewayTopologyV4Request topology1 = new GatewayTopologyV4Request();
    topology1.setTopologyName("topology1");
    topology1.setExposedServices(Collections.singletonList("AMBARI"));
    GatewayTopologyV4Request topology2 = new GatewayTopologyV4Request();
    topology2.setTopologyName("topology2");
    topology2.setExposedServices(Collections.singletonList("ALL"));
    source.setTopologies(Arrays.asList(topology1, topology2));
    Gateway result = new Gateway();
    when(gatewayTopologyV4RequestToGatewayTopologyConverter.convert(any())).thenReturn(new GatewayTopology());
    underTest.setTopologies(source, result);
    verify(gatewayTopologyV4RequestToGatewayTopologyConverter, times(2)).convert(any());
}
Also used : GatewayV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.GatewayV4Request) Gateway(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.Gateway) GatewayTopologyV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.topology.GatewayTopologyV4Request) GatewayTopology(com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.GatewayTopology) Test(org.junit.Test)

Aggregations

Gateway (com.sequenceiq.cloudbreak.domain.stack.cluster.gateway.Gateway)20 Test (org.junit.Test)18 GatewayV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.GatewayV4Request)16 Stack (com.sequenceiq.cloudbreak.domain.stack.Stack)16 Cluster (com.sequenceiq.cloudbreak.domain.stack.cluster.Cluster)15 Set (java.util.Set)15 Map (java.util.Map)14 List (java.util.List)13 Test (org.junit.jupiter.api.Test)12 InstanceGroup (com.sequenceiq.cloudbreak.domain.stack.instance.InstanceGroup)10 Json (com.sequenceiq.cloudbreak.common.json.Json)9 InstanceMetaData (com.sequenceiq.cloudbreak.domain.stack.instance.InstanceMetaData)9 Optional (java.util.Optional)9 Collectors (java.util.stream.Collectors)9 GatewayTopologyV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.cluster.gateway.topology.GatewayTopologyV4Request)8 Blueprint (com.sequenceiq.cloudbreak.domain.Blueprint)8 InstanceGroupType (com.sequenceiq.common.api.type.InstanceGroupType)8 HashSet (java.util.HashSet)8 EntitlementService (com.sequenceiq.cloudbreak.auth.altus.EntitlementService)7 InstanceMetaDataService (com.sequenceiq.cloudbreak.service.stack.InstanceMetaDataService)7