diff --git a/tests/unit/test_alert_rules/test_smart.yaml b/tests/unit/test_alert_rules/test_smart.yaml index 8e07ad12..28169558 100644 --- a/tests/unit/test_alert_rules/test_smart.yaml +++ b/tests/unit/test_alert_rules/test_smart.yaml @@ -168,7 +168,7 @@ tests: - interval: 1m input_series: - - series: 'smartctl_device_attribute{device="sda", attribute_id="5", attribute_name="Reallocated_Sectors_Count", instance="ubuntu-2"}' + - series: 'smartctl_device_attribute{device="sda", attribute_id="5", attribute_name="Reallocated_Sectors_Count", instance="ubuntu-2", attribute_value_type="raw"}' values: '2x10' alert_rule_test: @@ -230,4 +230,4 @@ tests: The NVMe drive has reached 90% of its estimated lifetime. Note: A value of 100 does not indicate failure. For more details, visit https://charmhub.io/hardware-observer/docs/metrics-and-alerts-smart VALUE = 95 - LABELS = map[__name__:smartctl_device_percentage_used device:nvme instance:ubuntu-4] \ No newline at end of file + LABELS = map[__name__:smartctl_device_percentage_used device:nvme instance:ubuntu-4]