@Test void testWithEngDestinationAndDisabledLogCollection() { BaseDiagnosticsCollectionRequest request = new BaseDiagnosticsCollectionRequest(); request.setDestination(DiagnosticsDestination.ENG); StackV4Response stackV4Response = new StackV4Response(); TelemetryResponse telemetry = new TelemetryResponse(); stackV4Response.setTelemetry(telemetry); BadRequestException thrown = assertThrows(BadRequestException.class, () -> underTest.validate(request, stackV4Response)); assertTrue(thrown.getMessage().contains("Cluster log collection is not enabled for this stack")); }
public void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response) { validate(request.getDestination(), stackV4Response, true); }
DiagnosticsCollectionValidator { public void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response) { validate(request.getDestination(), stackV4Response, true); } }
DiagnosticsCollectionValidator { public void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response) { validate(request.getDestination(), stackV4Response, true); }  }
DiagnosticsCollectionValidator { public void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response) { validate(request.getDestination(), stackV4Response, true); }  void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response); void validate(BaseDiagnosticsCollectionRequest request, StackV4Response stackV4Response); void validate(DiagnosticsDestination destination, StackV4Response stackV4Response, boolean cmBundle); }
DiagnosticsCollectionValidator { public void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response) { validate(request.getDestination(), stackV4Response, true); }  void validate(BaseCmDiagnosticsCollectionRequest request, StackV4Response stackV4Response); void validate(BaseDiagnosticsCollectionRequest request, StackV4Response stackV4Response); void validate(DiagnosticsDestination destination, StackV4Response stackV4Response, boolean cmBundle);  }