Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 89f8887

Browse files
authored
test: Remove redundant test case from httpproxy handler (nutanix-cloud-native#463)
1 parent 3fdc273 commit 89f8887

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

pkg/handlers/generic/mutation/httpproxy/tests/generate_patches.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,6 @@ func TestGeneratePatches(
3030
capitest.PatchTestDef{
3131
Name: "unset variable",
3232
},
33-
capitest.PatchTestDef{
34-
Name: "http proxy set for KubeadmConfigTemplate default-worker",
35-
Vars: []runtimehooksv1.Variable{
36-
capitest.VariableWithValue(
37-
variableName,
38-
v1alpha1.HTTPProxy{
39-
HTTP: "http://example.com",
40-
HTTPS: "https://example.com",
41-
AdditionalNo: []string{"no-proxy.example.com"},
42-
},
43-
variablePath...,
44-
),
45-
capitest.VariableWithValue(
46-
"builtin",
47-
map[string]any{
48-
"machineDeployment": map[string]any{
49-
"class": "default-worker",
50-
},
51-
},
52-
),
53-
},
54-
RequestItem: request.NewKubeadmConfigTemplateRequestItem(""),
55-
ExpectedPatchMatchers: []capitest.JSONPatchMatcher{{
56-
Operation: "add",
57-
Path: "/spec/template/spec/files",
58-
ValueMatcher: gomega.HaveLen(2),
59-
}},
60-
},
6133
capitest.PatchTestDef{
6234
Name: "http proxy set for KubeadmConfigTemplate generic worker",
6335
Vars: []runtimehooksv1.Variable{

0 commit comments

Comments
 (0)