Search in sources :

Example 1 with ImageSettingsTestDto

use of com.sequenceiq.it.cloudbreak.dto.ImageSettingsTestDto in project cloudbreak by hortonworks.

the class StackTestDtoBase method withImageSettings.

public StackTestDtoBase<T> withImageSettings(String key) {
    ImageSettingsTestDto imageSettingsEntity = getTestContext().get(key);
    getRequest().setImage(imageSettingsEntity.getRequest());
    return this;
}
Also used : ImageSettingsTestDto(com.sequenceiq.it.cloudbreak.dto.ImageSettingsTestDto)

Example 2 with ImageSettingsTestDto

use of com.sequenceiq.it.cloudbreak.dto.ImageSettingsTestDto in project cloudbreak by hortonworks.

the class SdxCustomTestDto method valid.

@Override
public SdxCustomTestDto valid() {
    ImageSettingsTestDto imageSettingsTestDto = getCloudProvider().imageSettings(getTestContext().init(ImageSettingsTestDto.class));
    ImageSettingsV4Request imageSettingsV4Request = imageSettingsTestDto.getRequest();
    ImageCatalogTestDto imageCatalogTestDto = getTestContext().get(ImageCatalogTestDto.class);
    withName(getResourcePropertyProvider().getName(getCloudPlatform())).withEnvironmentName(getTestContext().get(EnvironmentTestDto.class).getRequest().getName()).withClusterShape(getCloudProvider().getClusterShape()).withTags(getCloudProvider().getTags()).withImageCatalogNameAndImageId(imageCatalogTestDto.getName(), imageSettingsV4Request.getId());
    return getCloudProvider().sdxCustom(this);
}
Also used : ImageSettingsV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.image.ImageSettingsV4Request) ImageSettingsTestDto(com.sequenceiq.it.cloudbreak.dto.ImageSettingsTestDto) ImageCatalogTestDto(com.sequenceiq.it.cloudbreak.dto.imagecatalog.ImageCatalogTestDto)

Aggregations

ImageSettingsTestDto (com.sequenceiq.it.cloudbreak.dto.ImageSettingsTestDto)2 ImageSettingsV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.image.ImageSettingsV4Request)1 ImageCatalogTestDto (com.sequenceiq.it.cloudbreak.dto.imagecatalog.ImageCatalogTestDto)1