Skip to content

Commit a2a1648

Browse files
dshchedrclaude
andcommitted
Add STD docstrings to Windows crash detection test
Added module-level and test function docstrings following STD format with Preconditions, Steps, and Expected sections as requested by CodeRabbit review. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Denys Shchedrivyi <dshchedr@redhat.com>
1 parent b2d476f commit a2a1648

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/virt/node/hyperv_support/test_windows_crash_detection.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Windows crash detection with hyperv panic device
3+
"""
4+
15
import logging
26

37
import pytest
@@ -99,4 +103,17 @@ def test_windows_crash_detection_with_hyperv_panic(
99103
windows_vm_with_panic_device,
100104
windows_crashed,
101105
):
106+
"""Test that KubeVirt detects Windows guest crash via Hyper-V panic device.
107+
108+
Preconditions:
109+
- PanicDevices feature gate enabled
110+
- Windows VM created with hyperv panic device configured
111+
112+
Steps:
113+
1. Trigger BSOD on Windows VM using NtRaiseHardError
114+
2. Wait for GuestPanicked event on VMI
115+
116+
Expected:
117+
- VMI emits GuestPanicked event when Windows crashes
118+
"""
102119
wait_for_guest_panicked_event(vm=windows_vm_with_panic_device)

0 commit comments

Comments
 (0)