Files
napalm-windows/tests/fixtures/synthetic
Christian Manivong 0bbeebb7a7 feat(repairs): SFC, DISM and Defender runs through HostRepairMixin (NetOrk/netork#2899)
verify_system_files (sfc /verifyonly), check_component_store (DISM
/ScanHealth /English), update_antimalware_signatures (Update-MpSignature)
and scan_antimalware (Start-MpScan, quick or full), each one bounded PSRP
call streamed line by line through PsrpTransport.run_streaming. Native
tools run as a process read in their own encoding (sfc: UTF-16), and NULs
of UTF-16 read byte by byte are dropped. The exit code decides; a missing
tool or Defender says it is not available. sfc /scannow and DISM
/RestoreHealth stay undefined until a real host was tested.

tools/harvest.py --runs records the runs' output.
2026-12-01 12:49:37 +01:00
..

Synthetic fixtures

These files are what the driver's PowerShell scripts emit, not raw device output: each script projects its cmdlet results onto flat, primitive fields and ends in ConvertTo-Json. The shape is therefore this driver's own contract, and the Python side is tested against it here.

What they cannot prove is that the scripts produce this shape on a real host (property names, Windows PowerShell 5.1 serialisation quirks). They are to be replaced by output recorded from a Windows Server and a Windows 11 client.

The repair runs' fixtures (*.txt) are what their scripts stream: one output object per line, ending in napalm-exit-code:<n>. They follow Microsoft's documented output of sfc, DISM and the Defender cmdlets; tools/harvest.py --runs records the real ones.