@Test void testValidateWithCloudStorageWithEmptyTelemetry() { BaseDiagnosticsCollectionRequest request = new BaseDiagnosticsCollectionRequest(); request.setDestination(DiagnosticsDestination.CLOUD_STORAGE); Telemetry telemetry = new Telemetry(); BadRequestException thrown = assertThrows(BadRequestException.class, () -> underTest.validate(request, telemetry, "stackCrn")); assertTrue(thrown.getMessage().contains("Cloud storage logging is disabled for this cluster")); }
public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); } }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(BaseCmDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(DiagnosticsDestination destination, Telemetry telemetry, String stackCrn, Boolean cmBundle); }
DiagnosticsCollectionValidator { public void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn) { validate(request.getDestination(), telemetry, stackCrn, false); }  void validate(BaseDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(BaseCmDiagnosticsCollectionRequest request, Telemetry telemetry, String stackCrn); void validate(DiagnosticsDestination destination, Telemetry telemetry, String stackCrn, Boolean cmBundle);  }