use of com.sequenceiq.it.cloudbreak.context.Clue in project cloudbreak by hortonworks.
the class SdxTestDto method investigate.
@Override
public Clue investigate() {
if (getResponse() == null || getResponse().getCrn() == null) {
return null;
}
AuditEventV4Responses auditEvents = AuditUtil.getAuditEvents(getTestContext().getMicroserviceClient(CloudbreakClient.class), CloudbreakEventService.DATAHUB_RESOURCE_TYPE, null, getResponse().getCrn());
boolean hasSpotTermination = (getResponse().getStackV4Response() == null) ? false : getResponse().getStackV4Response().getInstanceGroups().stream().flatMap(ig -> ig.getMetadata().stream()).anyMatch(metadata -> InstanceStatus.DELETED_BY_PROVIDER == metadata.getInstanceStatus());
return new Clue("SDX", auditEvents, getResponse(), hasSpotTermination);
}
use of com.sequenceiq.it.cloudbreak.context.Clue in project cloudbreak by hortonworks.
the class SdxCustomTestDto method investigate.
@Override
public Clue investigate() {
if (getResponse() == null || getResponse().getCrn() == null) {
return null;
}
AuditEventV4Responses auditEvents = AuditUtil.getAuditEvents(getTestContext().getMicroserviceClient(CloudbreakClient.class), CloudbreakEventService.DATAHUB_RESOURCE_TYPE, null, getResponse().getCrn());
boolean hasSpotTermination = (getResponse().getStackV4Response() == null) ? false : getResponse().getStackV4Response().getInstanceGroups().stream().flatMap(ig -> ig.getMetadata().stream()).anyMatch(metadata -> InstanceStatus.DELETED_BY_PROVIDER == metadata.getInstanceStatus());
return new Clue("SDX", auditEvents, getResponse(), hasSpotTermination);
}
use of com.sequenceiq.it.cloudbreak.context.Clue in project cloudbreak by hortonworks.
the class SdxInternalTestDto method investigate.
@Override
public Clue investigate() {
if (getResponse() == null || getResponse().getCrn() == null) {
return null;
}
AuditEventV4Responses auditEvents = AuditUtil.getAuditEvents(getTestContext().getMicroserviceClient(CloudbreakClient.class), CloudbreakEventService.DATAHUB_RESOURCE_TYPE, null, getResponse().getCrn());
boolean hasSpotTermination = (getResponse().getStackV4Response() == null) ? false : getResponse().getStackV4Response().getInstanceGroups().stream().flatMap(ig -> ig.getMetadata().stream()).anyMatch(metadata -> InstanceStatus.DELETED_BY_PROVIDER == metadata.getInstanceStatus());
return new Clue("SDX", auditEvents, getResponse(), hasSpotTermination);
}
use of com.sequenceiq.it.cloudbreak.context.Clue in project cloudbreak by hortonworks.
the class DistroXTestDto method investigate.
@Override
public Clue investigate() {
if (getResponse() == null || getResponse().getId() == null) {
return null;
}
AuditEventV4Responses auditEvents = AuditUtil.getAuditEvents(getTestContext().getMicroserviceClient(CloudbreakClient.class), CloudbreakEventService.DATAHUB_RESOURCE_TYPE, getResponse().getId(), null);
boolean hasSpotTermination = (getResponse().getInstanceGroups() == null) ? false : getResponse().getInstanceGroups().stream().flatMap(ig -> ig.getMetadata().stream()).anyMatch(metadata -> InstanceStatus.DELETED_BY_PROVIDER == metadata.getInstanceStatus());
return new Clue("DistroX", auditEvents, getResponse(), hasSpotTermination);
}
use of com.sequenceiq.it.cloudbreak.context.Clue in project cloudbreak by hortonworks.
the class StackTestDto method investigate.
@Override
public Clue investigate() {
if (getResponse() == null || getResponse().getId() == null) {
return null;
}
AuditEventV4Responses auditEvents = AuditUtil.getAuditEvents(getTestContext().getMicroserviceClient(CloudbreakClient.class), CloudbreakEventService.DATAHUB_RESOURCE_TYPE, getResponse().getId(), null);
boolean hasSpotTermination = (getResponse().getInstanceGroups() == null) ? false : getResponse().getInstanceGroups().stream().flatMap(ig -> ig.getMetadata().stream()).anyMatch(metadata -> InstanceStatus.DELETED_BY_PROVIDER == metadata.getInstanceStatus());
return new Clue("DistroX", auditEvents, getResponse(), hasSpotTermination);
}
Aggregations