Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run container_down test after monit config change #10126

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions tests/telemetry/events/host_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ def test_event(duthost, gnxi_path, ptfhost, data_dir, validate_yang):
logger.info("Beginning to test host events")
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, trigger_kernel_event,
"event_kernel.json", "sonic-events-host:event-kernel", tag, False)
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, restart_container,
"event_stopped_ctr.json", "sonic-events-host:event-stopped-ctr", tag, False)
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, mask_container,
"event_down_ctr.json", "sonic-events-host:event-down-ctr", tag, False)

backup_monit_config(duthost)
customize_monit_config(
duthost,
Expand All @@ -37,6 +32,10 @@ def test_event(duthost, gnxi_path, ptfhost, data_dir, validate_yang):
"cpu_usage.json", "sonic-events-host:cpu-usage", tag, False)
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, trigger_mem_threshold_exceeded_alert,
"mem_threshold_exceeded.json", "sonic-events-host:mem-threshold-exceeded", tag)
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, restart_container,
"event_stopped_ctr.json", "sonic-events-host:event-stopped-ctr", tag, False)
run_test(duthost, gnxi_path, ptfhost, data_dir, validate_yang, mask_container,
"event_down_ctr.json", "sonic-events-host:event-down-ctr", tag, False)
finally:
restore_monit_config(duthost)

Expand Down