@Test public void testConvertToResponseForGcs() { Logging logging = new Logging(); GcsCloudStorageV1Parameters gcsCloudStorageV1Parameters = new GcsCloudStorageV1Parameters(); gcsCloudStorageV1Parameters.setServiceAccountEmail(EMAIL); logging.setGcs(gcsCloudStorageV1Parameters); Telemetry telemetry = new Telemetry(); telemetry.setLogging(logging); TelemetryResponse result = underTest.convert(telemetry); assertThat(result.getLogging().getGcs(), notNullValue()); assertThat(result.getLogging().getGcs().getServiceAccountEmail(), is(EMAIL)); }
public Telemetry convert(TelemetryRequest request) { Telemetry telemetry = null; if (freeIpaTelemetryEnabled && request != null) { telemetry = new Telemetry(); telemetry.setLogging(createLoggingFromRequest(request.getLogging())); telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures())); telemetry.setDatabusEndpoint(databusEndpoint); telemetry.setFluentAttributes(request.getFluentAttributes()); } return telemetry; }
TelemetryConverter { public Telemetry convert(TelemetryRequest request) { Telemetry telemetry = null; if (freeIpaTelemetryEnabled && request != null) { telemetry = new Telemetry(); telemetry.setLogging(createLoggingFromRequest(request.getLogging())); telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures())); telemetry.setDatabusEndpoint(databusEndpoint); telemetry.setFluentAttributes(request.getFluentAttributes()); } return telemetry; } }
TelemetryConverter { public Telemetry convert(TelemetryRequest request) { Telemetry telemetry = null; if (freeIpaTelemetryEnabled && request != null) { telemetry = new Telemetry(); telemetry.setLogging(createLoggingFromRequest(request.getLogging())); telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures())); telemetry.setDatabusEndpoint(databusEndpoint); telemetry.setFluentAttributes(request.getFluentAttributes()); } return telemetry; } TelemetryConverter(TelemetryConfiguration configuration,
            @Value("${freeipa.telemetry.enabled:true}") boolean freeIpaTelemetryEnabled); }
TelemetryConverter { public Telemetry convert(TelemetryRequest request) { Telemetry telemetry = null; if (freeIpaTelemetryEnabled && request != null) { telemetry = new Telemetry(); telemetry.setLogging(createLoggingFromRequest(request.getLogging())); telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures())); telemetry.setDatabusEndpoint(databusEndpoint); telemetry.setFluentAttributes(request.getFluentAttributes()); } return telemetry; } TelemetryConverter(TelemetryConfiguration configuration,
            @Value("${freeipa.telemetry.enabled:true}") boolean freeIpaTelemetryEnabled); Telemetry convert(TelemetryRequest request); TelemetryResponse convert(Telemetry telemetry); }
TelemetryConverter { public Telemetry convert(TelemetryRequest request) { Telemetry telemetry = null; if (freeIpaTelemetryEnabled && request != null) { telemetry = new Telemetry(); telemetry.setLogging(createLoggingFromRequest(request.getLogging())); telemetry.setFeatures(createFeaturesFromRequest(request.getFeatures())); telemetry.setDatabusEndpoint(databusEndpoint); telemetry.setFluentAttributes(request.getFluentAttributes()); } return telemetry; } TelemetryConverter(TelemetryConfiguration configuration,
            @Value("${freeipa.telemetry.enabled:true}") boolean freeIpaTelemetryEnabled); Telemetry convert(TelemetryRequest request); TelemetryResponse convert(Telemetry telemetry);  }