Skip to content

Commit 79e897e

Browse files
MaineK00nCopilot
andcommitted
test(scanner/windows): add explicit test cases for build 28000
Add dedicated Test_detectOSName case for Windows 11 26H1 (build 28000) and two DetectKBsFromKernelVersion cases (10.0.28000.1 and 10.0.28000.1836) to exercise the newly enabled 26H1 rollup data directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ecedc79 commit 79e897e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

scanner/windows_test.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,20 @@ func Test_detectOSName(t *testing.T) {
457457
},
458458
want: "Windows 11 Version 25H2 for x64-based Systems",
459459
},
460+
{
461+
name: "Windows 11 Version 26H1 for x64-based Systems",
462+
args: osInfo{
463+
productName: "Microsoft Windows 11 Pro",
464+
version: "10.0",
465+
build: "28000",
466+
revision: "1575",
467+
edition: "Professional",
468+
servicePack: "",
469+
arch: "x64-based",
470+
installationType: "Client",
471+
},
472+
want: "Windows 11 Version 26H1 for x64-based Systems",
473+
},
460474
{
461475
name: "Windows 11 latest release",
462476
args: osInfo{
@@ -1019,6 +1033,28 @@ func Test_windows_detectKBsFromKernelVersion(t *testing.T) {
10191033
Unapplied: nil,
10201034
},
10211035
},
1036+
{
1037+
name: "10.0.28000.1",
1038+
base: base{
1039+
Distro: config.Distro{Release: "Windows 11 Version 26H1 for x64-based Systems"},
1040+
osPackages: osPackages{Kernel: models.Kernel{Version: "10.0.28000.1"}},
1041+
},
1042+
want: models.WindowsKB{
1043+
Applied: nil,
1044+
Unapplied: []string{"5077179", "5077239", "5079466", "5079489", "5083768"},
1045+
},
1046+
},
1047+
{
1048+
name: "10.0.28000.1836",
1049+
base: base{
1050+
Distro: config.Distro{Release: "Windows 11 Version 26H1 for x64-based Systems"},
1051+
osPackages: osPackages{Kernel: models.Kernel{Version: "10.0.28000.1836"}},
1052+
},
1053+
want: models.WindowsKB{
1054+
Applied: []string{"5077179", "5077239", "5079466", "5079489", "5083768"},
1055+
Unapplied: nil,
1056+
},
1057+
},
10221058
{
10231059
name: "err",
10241060
base: base{

0 commit comments

Comments
 (0)