@@ -134,6 +134,8 @@ def test_single_filter(
134134 "plugin_output" : "WARN - load average: 3.10, 2.05, 1.01" ,
135135 "acknowledged" : 0 ,
136136 "scheduled_downtime_depth" : 0 ,
137+ "notifications_enabled" : 1 ,
138+ "is_flapping" : 0 ,
137139 "last_check" : time .time (),
138140 "last_state_change" : time .time (),
139141 }
@@ -219,6 +221,8 @@ def test_with_multiple_conditions(
219221 "plugin_output" : "WARN - load average: 3.10, 2.05, 1.01" ,
220222 "acknowledged" : 0 ,
221223 "scheduled_downtime_depth" : 0 ,
224+ "notifications_enabled" : 1 ,
225+ "is_flapping" : 0 ,
222226 "last_check" : time .time (),
223227 "last_state_change" : time .time (),
224228 }
@@ -330,6 +334,8 @@ def test_services(
330334 "plugin_output" : "OK - load average: 0.10, 0.05, 0.01" ,
331335 "acknowledged" : 0 ,
332336 "scheduled_downtime_depth" : 0 ,
337+ "notifications_enabled" : 1 ,
338+ "is_flapping" : 0 ,
333339 "last_check" : time .time () - 30 ,
334340 "last_state_change" : time .time (),
335341 }
@@ -403,6 +409,8 @@ def test_pending_service_has_no_last_check(
403409 "plugin_output" : "" ,
404410 "acknowledged" : 0 ,
405411 "scheduled_downtime_depth" : 0 ,
412+ "notifications_enabled" : 1 ,
413+ "is_flapping" : 0 ,
406414 "last_check" : 0 ,
407415 "last_state_change" : time .time (),
408416 }
@@ -522,6 +530,8 @@ def test_services_without_limit(
522530 "plugin_output" : "OK - load average: 0.10, 0.05, 0.01" ,
523531 "acknowledged" : 0 ,
524532 "scheduled_downtime_depth" : 0 ,
533+ "notifications_enabled" : 1 ,
534+ "is_flapping" : 0 ,
525535 "last_check" : time .time (),
526536 "last_state_change" : time .time (),
527537 }
@@ -584,6 +594,8 @@ def test_limit_removal_clamped_without_permission(
584594 "plugin_output" : "OK - load average: 0.10, 0.05, 0.01" ,
585595 "acknowledged" : 0 ,
586596 "scheduled_downtime_depth" : 0 ,
597+ "notifications_enabled" : 1 ,
598+ "is_flapping" : 0 ,
587599 "last_check" : time .time (),
588600 "last_state_change" : time .time (),
589601 }
@@ -646,6 +658,8 @@ def test_limit_removal_honored_with_permission(
646658 "plugin_output" : "OK - load average: 0.10, 0.05, 0.01" ,
647659 "acknowledged" : 0 ,
648660 "scheduled_downtime_depth" : 0 ,
661+ "notifications_enabled" : 1 ,
662+ "is_flapping" : 0 ,
649663 "last_check" : time .time (),
650664 "last_state_change" : time .time (),
651665 }
@@ -707,6 +721,7 @@ def test_returns_the_requested_service(
707721 "acknowledged" : 0 ,
708722 "scheduled_downtime_depth" : 0 ,
709723 "notifications_enabled" : 1 ,
724+ "is_flapping" : 0 ,
710725 "host_alias" : _HOST_ALIAS ,
711726 "host_state" : 0 ,
712727 "host_acknowledged" : 0 ,
@@ -775,12 +790,12 @@ def test_returns_the_requested_service(
775790 pytest .param ({"acknowledged" : 1 }, ["ack" ], id = "problem acknowledged" ),
776791 pytest .param (
777792 {"notifications_enabled" : 0 },
778- ["notif_disabled " ],
793+ ["notif-disabled " ],
779794 id = "notifications disabled" ,
780795 ),
781796 pytest .param (
782797 {"scheduled_downtime_depth" : 2 , "acknowledged" : 1 , "notifications_enabled" : 0 },
783- ["downtime" , "ack" , "notif_disabled " ],
798+ ["downtime" , "ack" , "notif-disabled " ],
784799 id = "all modes at once" ,
785800 ),
786801 ],
@@ -806,6 +821,7 @@ def test_modes_reflect_the_service_state(
806821 "acknowledged" : 0 ,
807822 "scheduled_downtime_depth" : 0 ,
808823 "notifications_enabled" : 1 ,
824+ "is_flapping" : 0 ,
809825 "host_alias" : _HOST_ALIAS ,
810826 "host_state" : 0 ,
811827 "host_acknowledged" : 0 ,
@@ -859,6 +875,7 @@ def test_passive_service_has_no_next_check(
859875 "acknowledged" : 0 ,
860876 "scheduled_downtime_depth" : 0 ,
861877 "notifications_enabled" : 1 ,
878+ "is_flapping" : 0 ,
862879 "host_alias" : _HOST_ALIAS ,
863880 "host_state" : 0 ,
864881 "host_acknowledged" : 0 ,
@@ -911,6 +928,7 @@ def test_pending_service_has_no_last_check(
911928 "acknowledged" : 0 ,
912929 "scheduled_downtime_depth" : 0 ,
913930 "notifications_enabled" : 1 ,
931+ "is_flapping" : 0 ,
914932 "host_alias" : _HOST_ALIAS ,
915933 "host_state" : 0 ,
916934 "host_acknowledged" : 0 ,
@@ -1086,13 +1104,13 @@ def test_invalid_credentials(self, clients: ClientRegistry) -> None:
10861104_HOST_ALIAS = "Web Server"
10871105_SERVICE_OVERVIEW_COLUMNS = (
10881106 "description host_name state plugin_output last_check last_state_change acknowledged "
1089- "scheduled_downtime_depth notifications_enabled host_alias host_state host_acknowledged "
1090- "host_scheduled_downtime_depth contact_groups long_plugin_output current_attempt "
1091- "max_check_attempts next_check tags labels label_sources"
1107+ "scheduled_downtime_depth notifications_enabled is_flapping host_alias host_state "
1108+ "host_acknowledged host_scheduled_downtime_depth contact_groups long_plugin_output "
1109+ "current_attempt max_check_attempts next_check tags labels label_sources"
10921110)
10931111_LIMIT = 1000
10941112_SERVICES_COLUMNS = (
10951113 "description host_name state plugin_output acknowledged scheduled_downtime_depth "
1096- "last_check last_state_change"
1114+ "notifications_enabled is_flapping last_check last_state_change"
10971115)
10981116_DEFAULT_ORDER_BY = "OrderBy: description asc natural"
0 commit comments