diff --git a/src/com/sap/piper/analytics/Telemetry.groovy b/src/com/sap/piper/analytics/Telemetry.groovy index 1a386d6b9..d721afb86 100644 --- a/src/com/sap/piper/analytics/Telemetry.groovy +++ b/src/com/sap/piper/analytics/Telemetry.groovy @@ -30,7 +30,7 @@ class Telemetry implements Serializable{ static notify(Script steps, Map config, Map payload){ //allow opt-out via configuration if (!config?.collectTelemetryData) { - steps.echo "[${payload.step}] Telemetry reporting disabled!" + steps.echo "[${payload.step}] Sending telemetry data is disabled." return } diff --git a/test/groovy/com/sap/piper/analytics/TelemetryTest.groovy b/test/groovy/com/sap/piper/analytics/TelemetryTest.groovy index 2d930930f..dbb0c0c21 100644 --- a/test/groovy/com/sap/piper/analytics/TelemetryTest.groovy +++ b/test/groovy/com/sap/piper/analytics/TelemetryTest.groovy @@ -82,7 +82,7 @@ class TelemetryTest extends BasePiperTest { Telemetry.notify(nullScript, [collectTelemetryData: false], [step: 'anyStep', anything: 'something']) // asserts assertThat(Telemetry.getInstance().listenerList, is(not(empty()))) - assertThat(jlr.log, containsString("[anyStep] Telemetry reporting disabled!")) + assertThat(jlr.log, containsString("[anyStep] Sending telemetry data is disabled.")) assertThat(notificationPayload.keySet(), is(empty())) } @@ -99,7 +99,7 @@ class TelemetryTest extends BasePiperTest { Telemetry.notify(nullScript, [:], [step: 'anyStep', anything: 'something']) // asserts assertThat(Telemetry.getInstance().listenerList, is(not(empty()))) - assertThat(jlr.log, containsString("[anyStep] Telemetry reporting disabled!")) + assertThat(jlr.log, containsString("[anyStep] Sending telemetry data is disabled.")) assertThat(notificationPayload.keySet(), is(empty())) } @@ -116,7 +116,7 @@ class TelemetryTest extends BasePiperTest { Telemetry.notify(nullScript, null, [step: 'anyStep', anything: 'something']) // asserts assertThat(Telemetry.getInstance().listenerList, is(not(empty()))) - assertThat(jlr.log, containsString("[anyStep] Telemetry reporting disabled!")) + assertThat(jlr.log, containsString("[anyStep] Sending telemetry data is disabled.")) assertThat(notificationPayload.keySet(), is(empty())) }