Search in sources :

Example 21 with InstanceGroup

use of com.sequenceiq.freeipa.entity.InstanceGroup in project cloudbreak by hortonworks.

the class KerberosConfigRegisterServiceTest method testRegister.

@Test
void testRegister() {
    Stack stack = new Stack();
    stack.setEnvironmentCrn("env");
    stack.setAccountId("acc");
    stack.setName("name");
    stack.setAppVersion("2.20.0");
    InstanceGroup instanceGroup = new InstanceGroup();
    instanceGroup.setInstanceGroupType(InstanceGroupType.MASTER);
    InstanceMetaData instanceMetaData = new InstanceMetaData();
    instanceMetaData.setDiscoveryFQDN("fqdn");
    instanceMetaData.setPrivateIp("1.1.1.1");
    instanceGroup.setInstanceMetaData(Collections.singleton(instanceMetaData));
    stack.setInstanceGroups(Collections.singleton(instanceGroup));
    when(stackService.getByIdWithListsInTransaction(anyLong())).thenReturn(stack);
    FreeIpa freeIpa = new FreeIpa();
    freeIpa.setDomain("testdomain.local");
    freeIpa.setAdminPassword("asdf");
    when(freeIpaService.findByStackId(anyLong())).thenReturn(freeIpa);
    when(balancedDnsAvailabilityChecker.isBalancedDnsAvailable(stack)).thenReturn(true);
    underTest.register(1L);
    ArgumentCaptor<KerberosConfig> kerberosConfigArgumentCaptor = ArgumentCaptor.forClass(KerberosConfig.class);
    ArgumentCaptor<String> accountIdArgumentCaptor = ArgumentCaptor.forClass(String.class);
    verify(kerberosConfigService).createKerberosConfig(kerberosConfigArgumentCaptor.capture(), accountIdArgumentCaptor.capture());
    assertEquals(stack.getAccountId(), accountIdArgumentCaptor.getValue());
    KerberosConfig kerberosConfig = kerberosConfigArgumentCaptor.getValue();
    assertEquals(stack.getName(), kerberosConfig.getName());
    assertEquals(stack.getEnvironmentCrn(), kerberosConfig.getEnvironmentCrn());
    assertEquals("kdc.testdomain.local", kerberosConfig.getUrl());
    assertEquals("kerberos.testdomain.local", kerberosConfig.getAdminUrl());
    assertEquals(instanceMetaData.getPrivateIp(), kerberosConfig.getNameServers());
    assertEquals(freeIpa.getAdminPassword(), kerberosConfig.getPassword());
    assertEquals(freeIpa.getDomain(), kerberosConfig.getDomain());
    assertEquals(freeIpa.getDomain().toUpperCase(), kerberosConfig.getRealm());
    assertEquals(KerberosType.FREEIPA, kerberosConfig.getType());
    assertEquals(KerberosConfigRegisterService.FREEIPA_DEFAULT_ADMIN, kerberosConfig.getPrincipal());
}
Also used : InstanceMetaData(com.sequenceiq.freeipa.entity.InstanceMetaData) FreeIpa(com.sequenceiq.freeipa.entity.FreeIpa) KerberosConfig(com.sequenceiq.freeipa.kerberos.KerberosConfig) Stack(com.sequenceiq.freeipa.entity.Stack) InstanceGroup(com.sequenceiq.freeipa.entity.InstanceGroup) Test(org.junit.jupiter.api.Test)

Example 22 with InstanceGroup

use of com.sequenceiq.freeipa.entity.InstanceGroup in project cloudbreak by hortonworks.

the class KerberosConfigUpdateServiceTest method testUpdateNameservers.

@Test
void testUpdateNameservers() {
    Stack stack = new Stack();
    stack.setEnvironmentCrn("env");
    stack.setAccountId("acc");
    stack.setName("name");
    stack.setAppVersion("2.20.0");
    InstanceGroup instanceGroup = new InstanceGroup();
    instanceGroup.setInstanceGroupType(InstanceGroupType.MASTER);
    InstanceMetaData instanceMetaData1 = new InstanceMetaData();
    instanceMetaData1.setDiscoveryFQDN("fqdn");
    instanceMetaData1.setPrivateIp("1.1.1.1");
    InstanceMetaData instanceMetaData2 = new InstanceMetaData();
    instanceMetaData2.setDiscoveryFQDN("fqdn");
    instanceMetaData2.setPrivateIp("2.2.2.2");
    instanceGroup.setInstanceMetaData(Set.of(instanceMetaData1, instanceMetaData2));
    stack.setInstanceGroups(Collections.singleton(instanceGroup));
    when(stackService.getByIdWithListsInTransaction(anyLong())).thenReturn(stack);
    KerberosConfig kerberosConfig1 = mock(KerberosConfig.class);
    KerberosConfig kerberosConfig2 = mock(KerberosConfig.class);
    List<KerberosConfig> kerberosConfigs = List.of(kerberosConfig1, kerberosConfig2);
    when(kerberosConfigService.findAllInEnvironment(any())).thenReturn(kerberosConfigs);
    underTest.updateNameservers(1L);
    ArgumentCaptor<String> nameServersCaptor = ArgumentCaptor.forClass(String.class);
    verify(kerberosConfig1).setNameServers(nameServersCaptor.capture());
    verify(kerberosConfig2).setNameServers(nameServersCaptor.capture());
    List.of(nameServersCaptor.getValue(), nameServersCaptor.getValue()).forEach(actualNameServersValue -> {
        assertTrue("1.1.1.1,2.2.2.2".equals(actualNameServersValue) || "2.2.2.2,1.1.1.1".equals(actualNameServersValue));
    });
    verify(kerberosConfigService).saveAll(eq(kerberosConfigs));
}
Also used : InstanceMetaData(com.sequenceiq.freeipa.entity.InstanceMetaData) KerberosConfig(com.sequenceiq.freeipa.kerberos.KerberosConfig) Stack(com.sequenceiq.freeipa.entity.Stack) InstanceGroup(com.sequenceiq.freeipa.entity.InstanceGroup) Test(org.junit.jupiter.api.Test)

Example 23 with InstanceGroup

use of com.sequenceiq.freeipa.entity.InstanceGroup in project cloudbreak by hortonworks.

the class FreeIpaClientFactoryTest method createStack.

private Stack createStack() {
    Stack stack = new Stack();
    Set<InstanceGroup> instanceGroups = new HashSet<>();
    stack.setInstanceGroups(instanceGroups);
    InstanceGroup group = new InstanceGroup();
    instanceGroups.add(group);
    group.setInstanceMetaData(METADATAS);
    return stack;
}
Also used : Stack(com.sequenceiq.freeipa.entity.Stack) InstanceGroup(com.sequenceiq.freeipa.entity.InstanceGroup) HashSet(java.util.HashSet)

Example 24 with InstanceGroup

use of com.sequenceiq.freeipa.entity.InstanceGroup in project cloudbreak by hortonworks.

the class RemoveHostsHandlerTest method testSendsSuccessMessageWhenRemovingHostAndIPAddressIsReusedAfterRepair.

@Test
void testSendsSuccessMessageWhenRemovingHostAndIPAddressIsReusedAfterRepair() throws Exception {
    CleanupEvent cleanupEvent = new CleanupEvent(STACK_ID, USERS, Set.of("example1.com"), ROLES, IPS, STATES_TO_SKIP, ACCOUNT_ID, OPERATION_ID, CLUSTER_NAME, ENVIRONMENT_CRN);
    RemoveHostsFromOrchestrationRequest request = new RemoveHostsFromOrchestrationRequest(cleanupEvent);
    Stack stack = new Stack();
    when(stackService.getByIdWithListsInTransaction(any())).thenReturn(stack);
    InstanceGroup ig = new InstanceGroup();
    ig.setGroupName("group");
    Template t = new Template();
    t.setInstanceType("GATEWAY");
    ig.setTemplate(t);
    InstanceMetaData im1 = new InstanceMetaData();
    im1.setDiscoveryFQDN("example1.com");
    im1.setPrivateIp("192.168.0.1");
    im1.setInstanceId("i-1");
    im1.setInstanceGroup(ig);
    InstanceMetaData im2 = new InstanceMetaData();
    im2.setDiscoveryFQDN("example2.com");
    im2.setPrivateIp("192.168.0.2");
    im2.setInstanceId("i-2");
    im2.setInstanceGroup(ig);
    InstanceMetaData im3 = new InstanceMetaData();
    im3.setDiscoveryFQDN("example3.com");
    im3.setPrivateIp("192.168.0.1");
    im3.setInstanceId("i-3");
    im3.setInstanceGroup(ig);
    ig.setInstanceMetaData(Set.of(im1, im2, im3));
    stack.setInstanceGroups(Set.of(ig));
    underTest.accept(new Event<>(request));
    verify(eventBus, times(1)).notify(eq("REMOVEHOSTSFROMORCHESTRATIONSUCCESS"), ArgumentMatchers.<Event>any());
    verify(bootstrapService).bootstrap(any(), any());
    verify(hostOrchestrator).tearDown(any(), any(), eq(Map.of("example1.com", "192.168.0.1")), any(), any());
}
Also used : InstanceMetaData(com.sequenceiq.freeipa.entity.InstanceMetaData) CleanupEvent(com.sequenceiq.freeipa.flow.freeipa.cleanup.CleanupEvent) RemoveHostsFromOrchestrationRequest(com.sequenceiq.freeipa.flow.freeipa.downscale.event.removehosts.RemoveHostsFromOrchestrationRequest) Stack(com.sequenceiq.freeipa.entity.Stack) InstanceGroup(com.sequenceiq.freeipa.entity.InstanceGroup) Template(com.sequenceiq.freeipa.entity.Template) Test(org.junit.jupiter.api.Test)

Example 25 with InstanceGroup

use of com.sequenceiq.freeipa.entity.InstanceGroup in project cloudbreak by hortonworks.

the class StackToCreateFreeIpaRequestConverterTest method testConvert.

@Test
void testConvert() {
    // Initialize
    Stack stack = new Stack();
    stack.setEnvironmentCrn(ENVIRONMENT_CRN);
    stack.setName(NAME + "_" + TERMINATION_TIME);
    stack.setRegion(REGION);
    stack.setAvailabilityZone(AVAILIBILTYY_ZONE);
    stack.setGatewayport(GATEWAY_PORT);
    stack.setUseCcm(true);
    stack.setTunnel(Tunnel.CCMV2);
    stack.setPlatformvariant(CLOUD_PLATFORM);
    StackStatus stackStatus = new StackStatus();
    stackStatus.setStack(stack);
    stackStatus.setDetailedStackStatus(DetailedStackStatus.DELETE_COMPLETED);
    stackStatus.setStatus(Status.DELETE_COMPLETED);
    stack.setStackStatus(stackStatus);
    InstanceGroup ig = new InstanceGroup();
    ig.setGroupName(INSTANCE_GROUP_NAME);
    Template template = new Template();
    template.setInstanceType(INSTANCE_TYPE);
    template.setAttributes(new Json(Map.of(AwsInstanceTemplate.EC2_SPOT_PERCENTAGE, EC2_SPOT_PERCENTAGE, AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, EC2_SPOT_MAX_PRICE)));
    template.setVolumeType(VOLUME_TYPE);
    template.setVolumeCount(VOLUMNE_COUNT);
    template.setVolumeSize(VOLUMNE_SIZE);
    ig.setTemplate(template);
    InstanceGroupNetwork igNetwork = new InstanceGroupNetwork();
    igNetwork.setAttributes(new Json(Map.of(NetworkConstants.SUBNET_IDS, SUBNET_IDS)));
    ig.setInstanceGroupNetwork(igNetwork);
    ig.setNodeCount(NODE_COUNT);
    SecurityGroup sg = new SecurityGroup();
    sg.setSecurityGroupIds(SECURITY_GROUP_IDS);
    SecurityRule sr = new SecurityRule();
    sr.setModifiable(true);
    sr.setPorts(PORT);
    sr.setProtocol(PROTOCOL);
    sr.setCidr(CIDR);
    sg.setSecurityRules(Set.of(sr));
    ig.setSecurityGroup(sg);
    ig.setInstanceGroupType(InstanceGroupType.MASTER);
    stack.setInstanceGroups(Set.of(ig));
    StackAuthentication stackAuthentication = new StackAuthentication();
    stackAuthentication.setLoginUserName(LOGIN_NAME);
    stackAuthentication.setPublicKey(PUBLIC_KEY);
    stackAuthentication.setPublicKeyId(PUBLIC_KEY_ID);
    stack.setStackAuthentication(stackAuthentication);
    Network network = new Network();
    network.setNetworkCidrs(List.of(CIDR));
    network.setOutboundInternetTraffic(OutboundInternetTraffic.ENABLED);
    network.setAttributes(new Json(Map.of("vpcId", VPC_ID, "subnetId", SUBNET_ID)));
    network.setCloudPlatform(CLOUD_PLATFORM);
    stack.setNetwork(network);
    ImageEntity image = new ImageEntity();
    image.setImageCatalogUrl(IMAGE_CATALOG_URL);
    image.setImageId(IMAGE_ID);
    image.setOs(IMAGE_OS);
    stack.setImage(image);
    FreeIpa freeIpa = new FreeIpa();
    freeIpa.setAdminGroupName(ADMIN_GROUP_NAME);
    freeIpa.setAdminPassword(ADMIN_PASSWORD);
    freeIpa.setDomain(DOMAIN);
    freeIpa.setHostname(HOSTNAME);
    Telemetry telemetry = new Telemetry();
    Map<String, Object> fluentAttributes = Map.of("fluent", "attributes");
    telemetry.setFluentAttributes(fluentAttributes);
    Logging logging = new Logging();
    logging.setStorageLocation(STORAGE_LOCATION);
    S3CloudStorageV1Parameters s3Storage = new S3CloudStorageV1Parameters();
    logging.setS3(s3Storage);
    AdlsGen2CloudStorageV1Parameters adlsStorage = new AdlsGen2CloudStorageV1Parameters();
    logging.setAdlsGen2(adlsStorage);
    GcsCloudStorageV1Parameters gcsStorage = new GcsCloudStorageV1Parameters();
    logging.setGcs(gcsStorage);
    CloudwatchParams cloudwatchParamsStorage = new CloudwatchParams();
    logging.setCloudwatch(cloudwatchParamsStorage);
    telemetry.setLogging(logging);
    Features features = new Features();
    features.setClusterLogsCollection(new FeatureSetting());
    features.setMonitoring(new FeatureSetting());
    features.setCloudStorageLogging(new FeatureSetting());
    features.setWorkloadAnalytics(new FeatureSetting());
    telemetry.setFeatures(features);
    WorkloadAnalytics workloadAnalytics = new WorkloadAnalytics();
    workloadAnalytics.setAttributes(Map.of());
    telemetry.setWorkloadAnalytics(workloadAnalytics);
    stack.setTelemetry(telemetry);
    Backup backup = new Backup();
    backup.setStorageLocation(BACKUP_STORAGE_LOCATION);
    S3CloudStorageV1Parameters s3BackupLocation = new S3CloudStorageV1Parameters();
    backup.setS3(s3BackupLocation);
    AdlsGen2CloudStorageV1Parameters adlsBackupLocation = new AdlsGen2CloudStorageV1Parameters();
    backup.setAdlsGen2(adlsBackupLocation);
    GcsCloudStorageV1Parameters gcsBackupLocation = new GcsCloudStorageV1Parameters();
    backup.setGcs(gcsBackupLocation);
    stack.setBackup(backup);
    StackTags tags = new StackTags(USER_DEFINED_TAGS, APPLICATION_TAGS, DEFAULT_TAGS);
    stack.setTags(new Json(tags));
    when(freeIpaService.findByStack(stack)).thenReturn(freeIpa);
    // Convert
    CreateFreeIpaRequest request = underTest.convert(stack);
    // Validate
    assertNotNull(request);
    assertEquals(ENVIRONMENT_CRN, request.getEnvironmentCrn());
    assertEquals(NAME, request.getName());
    assertEquals(GATEWAY_PORT, request.getGatewayPort());
    assertTrue(request.getUseCcm());
    assertEquals(Tunnel.CCMV2, request.getTunnel());
    assertEquals(CLOUD_PLATFORM, request.getVariant());
    PlacementRequest placementRequest = request.getPlacement();
    assertNotNull(placementRequest);
    assertEquals(REGION, placementRequest.getRegion());
    assertEquals(AVAILIBILTYY_ZONE, placementRequest.getAvailabilityZone());
    assertEquals(1, request.getInstanceGroups().size());
    InstanceGroupRequest igRequest = request.getInstanceGroups().get(0);
    assertEquals(INSTANCE_GROUP_NAME, igRequest.getName());
    InstanceTemplateRequest templateRequest = igRequest.getInstanceTemplate();
    assertNotNull(templateRequest);
    assertEquals(INSTANCE_TYPE, templateRequest.getInstanceType());
    assertNotNull(templateRequest.getAws());
    assertNotNull(templateRequest.getAws().getSpot());
    assertEquals(EC2_SPOT_PERCENTAGE, templateRequest.getAws().getSpot().getPercentage());
    assertEquals(EC2_SPOT_MAX_PRICE, templateRequest.getAws().getSpot().getMaxPrice());
    List<VolumeRequest> volumeRequests = templateRequest.getAttachedVolumes().stream().collect(Collectors.toList());
    assertEquals(1, volumeRequests.size());
    assertEquals(VOLUME_TYPE, volumeRequests.get(0).getType());
    assertEquals(VOLUMNE_COUNT, volumeRequests.get(0).getCount());
    assertEquals(VOLUMNE_SIZE, volumeRequests.get(0).getSize());
    assertNotNull(igRequest.getNetwork());
    assertNotNull(igRequest.getNetwork().getAws());
    assertEquals(SUBNET_IDS, igRequest.getNetwork().getAws().getSubnetIds());
    assertEquals(NODE_COUNT, ig.getNodeCount());
    assertNotNull(igRequest.getSecurityGroup());
    assertEquals(SECURITY_GROUP_IDS, igRequest.getSecurityGroup().getSecurityGroupIds());
    List<SecurityRuleRequest> srRequst = igRequest.getSecurityGroup().getSecurityRules();
    assertEquals(1, srRequst.size());
    assertTrue(srRequst.get(0).isModifiable());
    assertEquals(List.of(PORT), srRequst.get(0).getPorts());
    assertEquals(PROTOCOL, srRequst.get(0).getProtocol());
    assertEquals(CIDR, srRequst.get(0).getSubnet());
    assertEquals(InstanceGroupType.MASTER, ig.getInstanceGroupType());
    StackAuthenticationRequest stackAuthenticationRequest = request.getAuthentication();
    assertNotNull(stackAuthenticationRequest);
    assertEquals(LOGIN_NAME, stackAuthenticationRequest.getLoginUserName());
    assertEquals(PUBLIC_KEY, stackAuthenticationRequest.getPublicKey());
    assertEquals(PUBLIC_KEY_ID, stackAuthenticationRequest.getPublicKeyId());
    NetworkRequest networkRequest = request.getNetwork();
    assertNotNull(networkRequest);
    assertEquals(CloudPlatform.AWS, networkRequest.getCloudPlatform());
    assertEquals(List.of(CIDR), networkRequest.getNetworkCidrs());
    assertEquals(OutboundInternetTraffic.ENABLED, networkRequest.getOutboundInternetTraffic());
    assertNotNull(networkRequest.getAws());
    assertNull(networkRequest.getAzure());
    assertNull(networkRequest.getGcp());
    assertNull(networkRequest.getMock());
    assertNull(networkRequest.getYarn());
    assertEquals(CloudPlatform.AWS, networkRequest.getAws().getCloudPlatform());
    assertEquals(VPC_ID, networkRequest.getAws().getVpcId());
    assertEquals(SUBNET_ID, networkRequest.getAws().getSubnetId());
    ImageSettingsRequest imageSettingsRequest = request.getImage();
    assertNotNull(imageSettingsRequest);
    assertEquals(IMAGE_ID, imageSettingsRequest.getId());
    assertEquals(IMAGE_CATALOG_URL, imageSettingsRequest.getCatalog());
    assertEquals(IMAGE_OS, imageSettingsRequest.getOs());
    FreeIpaServerRequest freeIpaServerRequest = request.getFreeIpa();
    assertNotNull(freeIpaServerRequest);
    assertEquals(ADMIN_GROUP_NAME, freeIpaServerRequest.getAdminGroupName());
    assertEquals(ADMIN_PASSWORD, freeIpaServerRequest.getAdminPassword());
    assertEquals(DOMAIN, freeIpaServerRequest.getDomain());
    assertEquals(HOSTNAME, freeIpaServerRequest.getHostname());
    TelemetryRequest telemetryRequest = request.getTelemetry();
    assertNotNull(telemetryRequest);
    assertEquals(fluentAttributes, telemetryRequest.getFluentAttributes());
    assertNotNull(telemetryRequest.getLogging());
    assertEquals(STORAGE_LOCATION_REQUEST, telemetryRequest.getLogging().getStorageLocation());
    assertEquals(s3Storage, telemetryRequest.getLogging().getS3());
    assertEquals(adlsStorage, telemetryRequest.getLogging().getAdlsGen2());
    assertEquals(gcsStorage, telemetryRequest.getLogging().getGcs());
    assertNotNull(telemetryRequest.getLogging().getCloudwatch());
    assertNotNull(telemetryRequest.getFeatures());
    assertNotNull(telemetryRequest.getFeatures().getClusterLogsCollection());
    assertNotNull(telemetryRequest.getFeatures().getMonitoring());
    assertNotNull(telemetryRequest.getFeatures().getCloudStorageLogging());
    assertNotNull(telemetryRequest.getFeatures().getWorkloadAnalytics());
    assertNotNull(telemetryRequest.getWorkloadAnalytics());
    assertEquals(Map.of(), telemetryRequest.getWorkloadAnalytics().getAttributes());
    BackupRequest backupRequest = request.getBackup();
    assertNotNull(backupRequest);
    assertEquals(BACKUP_STORAGE_LOCATION_REQUEST, backupRequest.getStorageLocation());
    assertEquals(s3BackupLocation, backupRequest.getS3());
    assertEquals(adlsBackupLocation, backupRequest.getAdlsGen2());
    assertEquals(gcsBackupLocation, backupRequest.getGcs());
    assertEquals(USER_DEFINED_TAGS, request.getTags());
}
Also used : CloudwatchParams(com.sequenceiq.common.api.telemetry.model.CloudwatchParams) BackupRequest(com.sequenceiq.common.api.backup.request.BackupRequest) StackAuthentication(com.sequenceiq.freeipa.entity.StackAuthentication) InstanceGroupRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest) ImageSettingsRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.image.ImageSettingsRequest) CreateFreeIpaRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create.CreateFreeIpaRequest) Backup(com.sequenceiq.freeipa.api.model.Backup) PlacementRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.region.PlacementRequest) SecurityRuleRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.SecurityRuleRequest) SecurityRule(com.sequenceiq.freeipa.entity.SecurityRule) GcsCloudStorageV1Parameters(com.sequenceiq.common.api.cloudstorage.old.GcsCloudStorageV1Parameters) Template(com.sequenceiq.freeipa.entity.Template) AwsInstanceTemplate(com.sequenceiq.cloudbreak.cloud.model.instance.AwsInstanceTemplate) StackTags(com.sequenceiq.cloudbreak.cloud.model.StackTags) InstanceTemplateRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceTemplateRequest) FreeIpa(com.sequenceiq.freeipa.entity.FreeIpa) AdlsGen2CloudStorageV1Parameters(com.sequenceiq.common.api.cloudstorage.old.AdlsGen2CloudStorageV1Parameters) InstanceGroupNetwork(com.sequenceiq.freeipa.entity.InstanceGroupNetwork) Network(com.sequenceiq.freeipa.entity.Network) Features(com.sequenceiq.common.api.telemetry.model.Features) FreeIpaServerRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest) Logging(com.sequenceiq.common.api.telemetry.model.Logging) StackAuthenticationRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest) S3CloudStorageV1Parameters(com.sequenceiq.common.api.cloudstorage.old.S3CloudStorageV1Parameters) ImageEntity(com.sequenceiq.freeipa.entity.ImageEntity) FeatureSetting(com.sequenceiq.common.api.type.FeatureSetting) DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus) StackStatus(com.sequenceiq.freeipa.entity.StackStatus) NetworkRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest) Json(com.sequenceiq.cloudbreak.common.json.Json) SecurityGroup(com.sequenceiq.freeipa.entity.SecurityGroup) Telemetry(com.sequenceiq.common.api.telemetry.model.Telemetry) VolumeRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.VolumeRequest) Stack(com.sequenceiq.freeipa.entity.Stack) InstanceGroup(com.sequenceiq.freeipa.entity.InstanceGroup) TelemetryRequest(com.sequenceiq.common.api.telemetry.request.TelemetryRequest) InstanceGroupNetwork(com.sequenceiq.freeipa.entity.InstanceGroupNetwork) WorkloadAnalytics(com.sequenceiq.common.api.telemetry.model.WorkloadAnalytics) Test(org.junit.jupiter.api.Test)

Aggregations

InstanceGroup (com.sequenceiq.freeipa.entity.InstanceGroup)60 Stack (com.sequenceiq.freeipa.entity.Stack)32 InstanceMetaData (com.sequenceiq.freeipa.entity.InstanceMetaData)31 Test (org.junit.jupiter.api.Test)30 Template (com.sequenceiq.freeipa.entity.Template)18 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)16 FreeIpaServerRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)11 Json (com.sequenceiq.cloudbreak.common.json.Json)10 InstanceGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)10 NetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest)10 CloudInstance (com.sequenceiq.cloudbreak.cloud.model.CloudInstance)9 AwsInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AwsInstanceTemplate)9 InstanceGroupNetwork (com.sequenceiq.freeipa.entity.InstanceGroupNetwork)9 HashSet (java.util.HashSet)9 AzureInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AzureInstanceTemplate)8 FreeIpa (com.sequenceiq.freeipa.entity.FreeIpa)7 InstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.InstanceTemplate)6 InstanceTemplateRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceTemplateRequest)6 HashMap (java.util.HashMap)6 CreateFreeIpaRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create.CreateFreeIpaRequest)5