@@ -89,7 +89,7 @@ var _ = Describe("Generate auto renew patches", func() {
8989 },
9090 {
9191 patchTest : capitest.PatchTestDef {
92- Name : "auto cert renewal set with Nutanix" ,
92+ Name : "auto cert renewal set to 10 with Nutanix" ,
9393 Vars : []runtimehooksv1.Variable {
9494 capitest .VariableWithValue (
9595 v1alpha1 .ClusterConfigVariableName ,
@@ -115,6 +115,31 @@ var _ = Describe("Generate auto renew patches", func() {
115115 }},
116116 },
117117 },
118+ {
119+ patchTest : capitest.PatchTestDef {
120+ Name : "auto cert renewal set to 0 with Nutanix" ,
121+ Vars : []runtimehooksv1.Variable {
122+ capitest .VariableWithValue (
123+ v1alpha1 .ClusterConfigVariableName ,
124+ v1alpha1.NutanixClusterConfigSpec {
125+ ControlPlane : & v1alpha1.NutanixControlPlaneSpec {
126+ GenericControlPlaneSpec : v1alpha1.GenericControlPlaneSpec {
127+ AutoRenewCertificates : & v1alpha1.AutoRenewCertificatesSpec {
128+ DaysBeforeExpiry : 0 ,
129+ },
130+ },
131+ },
132+ },
133+ ),
134+ },
135+ RequestItem : request .NewKubeadmControlPlaneTemplateRequestItem ("" ),
136+ UnexpectedPatchMatchers : []capitest.JSONPatchMatcher {{
137+ Operation : "add" ,
138+ Path : "/spec/template/spec" ,
139+ ValueMatcher : gomega .HaveKey ("rolloutBefore" ),
140+ }},
141+ },
142+ },
118143 }
119144
120145 // create test node for each case
0 commit comments