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

Commit

Permalink
test: Remove redundant test case from httpproxy handler (nutanix-clou…
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky authored Mar 20, 2024
1 parent 3fdc273 commit 89f8887
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions pkg/handlers/generic/mutation/httpproxy/tests/generate_patches.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,6 @@ func TestGeneratePatches(
capitest.PatchTestDef{
Name: "unset variable",
},
capitest.PatchTestDef{
Name: "http proxy set for KubeadmConfigTemplate default-worker",
Vars: []runtimehooksv1.Variable{
capitest.VariableWithValue(
variableName,
v1alpha1.HTTPProxy{
HTTP: "http://example.com",
HTTPS: "https://example.com",
AdditionalNo: []string{"no-proxy.example.com"},
},
variablePath...,
),
capitest.VariableWithValue(
"builtin",
map[string]any{
"machineDeployment": map[string]any{
"class": "default-worker",
},
},
),
},
RequestItem: request.NewKubeadmConfigTemplateRequestItem(""),
ExpectedPatchMatchers: []capitest.JSONPatchMatcher{{
Operation: "add",
Path: "/spec/template/spec/files",
ValueMatcher: gomega.HaveLen(2),
}},
},
capitest.PatchTestDef{
Name: "http proxy set for KubeadmConfigTemplate generic worker",
Vars: []runtimehooksv1.Variable{
Expand Down

0 comments on commit 89f8887

Please sign in to comment.