@@ -9,14 +9,17 @@ import (
9
9
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6"
10
10
)
11
11
12
+ func EmptyBootstrapConfigMutator (configuration * datamodel.NodeBootstrappingConfiguration ) {}
13
+ func EmptyVMConfigMutator (vmss * armcompute.VirtualMachineScaleSet ) {}
14
+
12
15
func Test_Windows2019Containerd (t * testing.T ) {
13
16
RunScenario (t , & Scenario {
14
17
Description : "Windows Server 2019 with Containerd" ,
15
18
Config : Config {
16
19
Cluster : ClusterAzureNetwork ,
17
20
VHD : config .VHDWindows2019Containerd ,
18
- VMConfigMutator : func ( vmss * armcompute. VirtualMachineScaleSet ) {} ,
19
- BootstrapConfigMutator : func ( configuration * datamodel. NodeBootstrappingConfiguration ) {} ,
21
+ VMConfigMutator : EmptyVMConfigMutator ,
22
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
20
23
Validator : func (ctx context.Context , s * Scenario ) {
21
24
ValidateWindowsVersionFromWindowsSettings (ctx , s , "2019-containerd" )
22
25
ValidateWindowsProductName (ctx , s , "Windows Server 2019 Datacenter" )
@@ -34,11 +37,10 @@ func Test_Windows2022Containerd(t *testing.T) {
34
37
RunScenario (t , & Scenario {
35
38
Description : "Windows Server 2022 with Containerd" ,
36
39
Config : Config {
37
- Cluster : ClusterAzureNetwork ,
38
- VHD : config .VHDWindows2022Containerd ,
39
- VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {},
40
- BootstrapConfigMutator : func (configuration * datamodel.NodeBootstrappingConfiguration ) {
41
- },
40
+ Cluster : ClusterAzureNetwork ,
41
+ VHD : config .VHDWindows2022Containerd ,
42
+ VMConfigMutator : EmptyVMConfigMutator ,
43
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
42
44
Validator : func (ctx context.Context , s * Scenario ) {
43
45
ValidateWindowsVersionFromWindowsSettings (ctx , s , "2022-containerd" )
44
46
ValidateWindowsProductName (ctx , s , "Windows Server 2022 Datacenter" )
@@ -55,11 +57,10 @@ func Test_Windows2022ContainerdGen2(t *testing.T) {
55
57
RunScenario (t , & Scenario {
56
58
Description : "Windows Server 2022 with Containerd - hyperv gen 2" ,
57
59
Config : Config {
58
- Cluster : ClusterAzureNetwork ,
59
- VHD : config .VHDWindows2022ContainerdGen2 ,
60
- VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {},
61
- BootstrapConfigMutator : func (configuration * datamodel.NodeBootstrappingConfiguration ) {
62
- },
60
+ Cluster : ClusterAzureNetwork ,
61
+ VHD : config .VHDWindows2022ContainerdGen2 ,
62
+ VMConfigMutator : EmptyVMConfigMutator ,
63
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
63
64
Validator : func (ctx context.Context , s * Scenario ) {
64
65
ValidateWindowsVersionFromWindowsSettings (ctx , s , "2022-containerd-gen2" )
65
66
ValidateWindowsProductName (ctx , s , "Windows Server 2022 Datacenter" )
@@ -76,11 +77,10 @@ func Test_Windows23H2(t *testing.T) {
76
77
RunScenario (t , & Scenario {
77
78
Description : "Windows Server 23H2 with Containerd" ,
78
79
Config : Config {
79
- Cluster : ClusterAzureNetwork ,
80
- VHD : config .VHDWindows23H2 ,
81
- VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {},
82
- BootstrapConfigMutator : func (configuration * datamodel.NodeBootstrappingConfiguration ) {
83
- },
80
+ Cluster : ClusterAzureNetwork ,
81
+ VHD : config .VHDWindows23H2 ,
82
+ VMConfigMutator : EmptyVMConfigMutator ,
83
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
84
84
Validator : func (ctx context.Context , s * Scenario ) {
85
85
ValidateWindowsVersionFromWindowsSettings (ctx , s , "23H2" )
86
86
ValidateWindowsProductName (ctx , s , "Windows Server 2022 Datacenter" )
@@ -97,11 +97,10 @@ func Test_Windows23H2Gen2(t *testing.T) {
97
97
RunScenario (t , & Scenario {
98
98
Description : "Windows Server 23H2 with Containerd - hyperv gen2" ,
99
99
Config : Config {
100
- Cluster : ClusterAzureNetwork ,
101
- VHD : config .VHDWindows23H2Gen2 ,
102
- VMConfigMutator : func (vmss * armcompute.VirtualMachineScaleSet ) {},
103
- BootstrapConfigMutator : func (configuration * datamodel.NodeBootstrappingConfiguration ) {
104
- },
100
+ Cluster : ClusterAzureNetwork ,
101
+ VHD : config .VHDWindows23H2Gen2 ,
102
+ VMConfigMutator : EmptyVMConfigMutator ,
103
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
105
104
Validator : func (ctx context.Context , s * Scenario ) {
106
105
ValidateWindowsVersionFromWindowsSettings (ctx , s , "23H2-gen2" )
107
106
ValidateWindowsProductName (ctx , s , "Windows Server 2022 Datacenter" )
@@ -114,6 +113,50 @@ func Test_Windows23H2Gen2(t *testing.T) {
114
113
})
115
114
}
116
115
116
+ func Test_Windows2025 (t * testing.T ) {
117
+ // TODO: re-enable the tests once the Windows E2E tests are fixed in pipeline
118
+ t .Skip ("Skipping testing" )
119
+ RunScenario (t , & Scenario {
120
+ Description : "Windows Server 2025 with Containerd" ,
121
+ Config : Config {
122
+ Cluster : ClusterAzureNetwork ,
123
+ VHD : config .VHDWindows2025 ,
124
+ VMConfigMutator : EmptyVMConfigMutator ,
125
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
126
+ Validator : func (ctx context.Context , s * Scenario ) {
127
+ ValidateWindowsVersionFromWindowsSettings (ctx , s , "2025" )
128
+ ValidateWindowsProductName (ctx , s , "Windows Server 2025 Datacenter" )
129
+ ValidateWindowsDisplayVersion (ctx , s , "2025" )
130
+ ValidateFileHasContent (ctx , s , "/k/kubeletstart.ps1" , "--container-runtime=remote" )
131
+ ValidateWindowsProcessHasCliArguments (ctx , s , "kubelet.exe" , []string {"--rotate-certificates=true" , "--client-ca-file=c:\\ k\\ ca.crt" })
132
+ ValidateCiliumIsNotRunningWindows (ctx , s )
133
+ },
134
+ },
135
+ })
136
+ }
137
+
138
+ func Test_Windows2025Gen2 (t * testing.T ) {
139
+ // TODO: re-enable the tests once the Windows E2E tests are fixed in pipeline
140
+ t .Skip ("Skipping testing" )
141
+ RunScenario (t , & Scenario {
142
+ Description : "Windows Server 2025 with Containerd - hyperv gen 2" ,
143
+ Config : Config {
144
+ Cluster : ClusterAzureNetwork ,
145
+ VHD : config .VHDWindows2025Gen2 ,
146
+ VMConfigMutator : EmptyVMConfigMutator ,
147
+ BootstrapConfigMutator : EmptyBootstrapConfigMutator ,
148
+ Validator : func (ctx context.Context , s * Scenario ) {
149
+ ValidateWindowsVersionFromWindowsSettings (ctx , s , "2025-gen2" )
150
+ ValidateWindowsProductName (ctx , s , "Windows Server 2025 Datacenter" )
151
+ ValidateWindowsDisplayVersion (ctx , s , "2025" )
152
+ ValidateFileHasContent (ctx , s , "/k/kubeletstart.ps1" , "--container-runtime=remote" )
153
+ ValidateWindowsProcessHasCliArguments (ctx , s , "kubelet.exe" , []string {"--rotate-certificates=true" , "--client-ca-file=c:\\ k\\ ca.crt" })
154
+ ValidateCiliumIsNotRunningWindows (ctx , s )
155
+ },
156
+ },
157
+ })
158
+ }
159
+
117
160
// TODO: enable this test once production AKS supports Cilium Windows
118
161
/*
119
162
func Test_Windows23H2_Cilium2(t *testing.T) {
0 commit comments