We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f091f commit c994e3cCopy full SHA for c994e3c
pkg/handlers/generic/mutation/httpproxy/tests/generate_patches.go
@@ -53,9 +53,16 @@ func TestGeneratePatches(
53
},
54
RequestItem: request.NewKubeadmConfigTemplateRequestItem(""),
55
ExpectedPatchMatchers: []capitest.JSONPatchMatcher{{
56
- Operation: "add",
57
- Path: "/spec/template/spec/files",
58
- ValueMatcher: gomega.HaveLen(2),
+ Operation: "add",
+ Path: "/spec/template/spec/files",
+ ValueMatcher: gomega.ContainElements(
59
+ gomega.HaveKeyWithValue(
60
+ "path", "/etc/systemd/system/containerd.service.d/http-proxy.conf",
61
+ ),
62
63
+ "path", "/etc/systemd/system/kubelet.service.d/http-proxy.conf",
64
65
66
}},
67
68
capitest.PatchTestDef{
0 commit comments