mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
When telemetry is disabled Inspec.record_telemetry_data doesn't record
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
ac2d782266
commit
b51ad8acb8
1 changed files with 5 additions and 0 deletions
|
@ -25,4 +25,9 @@ class TestTelemetryGlobalMethods < Minitest::Test
|
||||||
assert_equal ['serverspec_compat'], depgrp.data
|
assert_equal ['serverspec_compat'], depgrp.data
|
||||||
assert_equal :deprecation_group, depgrp.name
|
assert_equal :deprecation_group, depgrp.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_telemetry_disabled
|
||||||
|
@collector.load_config(Inspec::Config.mock(telemetry: false))
|
||||||
|
refute Inspec.record_telemetry_data(:deprecation_group, 'serverspec_compat')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue