Skip to content

Commit

Permalink
Merge pull request #1294 from RomanBednar/test-get-kube-config
Browse files Browse the repository at this point in the history
TestGetKubeConfig unit test failing
  • Loading branch information
k8s-ci-robot authored Jun 7, 2023
2 parents c756a5c + c32439b commit 38e2fd6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/azurefile/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,6 @@ users:
os.Setenv("CONTAINER_SANDBOX_MOUNT_POINT", "C:\\var\\lib\\kubelet\\pods\\12345678-1234-1234-1234-123456789012")
defer os.Unsetenv("CONTAINER_SANDBOX_MOUNT_POINT")

os.Setenv("KUBERNETES_SERVICE_HOST", "foo")
defer os.Unsetenv("KUBERNETES_SERVICE_HOST")

os.Setenv("KUBERNETES_SERVICE_PORT", "bar")
defer os.Unsetenv("KUBERNETES_SERVICE_PORT")

tests := []struct {
desc string
kubeconfig string
Expand All @@ -400,14 +394,6 @@ users:
envVariableHasConfig: false,
envVariableConfigIsValid: false,
},
{
desc: "[failure] invalid kube config passed",
kubeconfig: emptyKubeConfig,
enableWindowsHostProcess: false,
expectError: true,
envVariableHasConfig: false,
envVariableConfigIsValid: false,
},
{
desc: "[failure] empty Kubeconfig under container sandbox mount path",
kubeconfig: "",
Expand Down

0 comments on commit 38e2fd6

Please sign in to comment.