From 0dc3fde80e9a446b3c300737058ba6b36ccabafc Mon Sep 17 00:00:00 2001 From: Yevhen Fastiuk Date: Thu, 16 May 2024 19:32:11 +0300 Subject: [PATCH] Fixup Signed-off-by: Yevhen Fastiuk --- files/build_templates/init_cfg.json.j2 | 2 +- src/system-health/tests/test_system_health.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/files/build_templates/init_cfg.json.j2 b/files/build_templates/init_cfg.json.j2 index 9a666a7559da..63de97a85f67 100644 --- a/files/build_templates/init_cfg.json.j2 +++ b/files/build_templates/init_cfg.json.j2 @@ -87,7 +87,7 @@ {%- if feature in ["bgp"] %} "check_up_status" : "false", {%- endif %} -{%- if feature in ["ib-utils", "snmp"] %} +{%- if feature in ["snmp"] %} "irrel_for_sysready" : "true", {%- endif %} {%- if include_kubernetes == "y" %} diff --git a/src/system-health/tests/test_system_health.py b/src/system-health/tests/test_system_health.py index 1d7c3e85ef6c..5c1f3d787231 100644 --- a/src/system-health/tests/test_system_health.py +++ b/src/system-health/tests/test_system_health.py @@ -726,7 +726,6 @@ def test_check_unit_status(): def test_system_status_up_after_service_removed(): sysmon = Sysmonitor() sysmon.monitor_timeout = MagicMock() - # sysmon.publish_system_status('UP') # By default it is in init state. And should remain in init sysmon.check_unit_status('mock_bgp.service') @@ -865,7 +864,6 @@ def test_publish_system_status_allowed_status(): for call_args in sysmon.post_system_status.call_args_list: assert call_args in expected_calls -# @patch('health_checker.sysmonitor.Sysmonitor.post_system_status', MagicMock()) @patch('health_checker.sysmonitor.Sysmonitor.print_console_message', MagicMock()) def test_publish_system_status():