@Test public void testConvertToResponse() { Logging logging = new Logging(); S3CloudStorageV1Parameters s3Params = new S3CloudStorageV1Parameters(); s3Params.setInstanceProfile(INSTANCE_PROFILE_VALUE); logging.setS3(s3Params); Telemetry telemetry = new Telemetry(); telemetry.setLogging(logging); TelemetryResponse result = underTest.convert(telemetry); assertThat(result.getLogging().getS3().getInstanceProfile(), is(INSTANCE_PROFILE_VALUE)); }
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);  }