File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
pkg/handlers/generic/mutation/auditpolicy/tests Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,16 @@ func TestGeneratePatches(
25
25
Name : "unset variable" ,
26
26
},
27
27
capitest.PatchTestDef {
28
- Name : "http proxy set for KubeadmControlPlaneTemplate" ,
28
+ Name : "auditpolicy set for KubeadmControlPlaneTemplate" ,
29
29
RequestItem : request .NewKubeadmControlPlaneTemplateRequestItem ("" ),
30
30
ExpectedPatchMatchers : []capitest.JSONPatchMatcher {{
31
- Operation : "add" ,
32
- Path : "/spec/template/spec/kubeadmConfigSpec/files" ,
33
- ValueMatcher : gomega .HaveLen (1 ),
31
+ Operation : "add" ,
32
+ Path : "/spec/template/spec/kubeadmConfigSpec/files" ,
33
+ ValueMatcher : gomega .ContainElements (
34
+ gomega .HaveKeyWithValue (
35
+ "path" , "/etc/kubernetes/audit-policy/apiserver-audit-policy.yaml" ,
36
+ ),
37
+ ),
34
38
}, {
35
39
Operation : "add" ,
36
40
Path : "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration" ,
You can’t perform that action at this time.
0 commit comments