From e6f73620343719fbbfcf9f24a2cb29d45f64574a Mon Sep 17 00:00:00 2001 From: Zbigniew Mandziejewicz Date: Mon, 9 Nov 2020 23:27:23 +0400 Subject: [PATCH] fix: test formatting --- pkg/skaffold/config/util_test.go | 59 +++++++------------------------- 1 file changed, 12 insertions(+), 47 deletions(-) diff --git a/pkg/skaffold/config/util_test.go b/pkg/skaffold/config/util_test.go index 28ea189a7ab..c15d3d35217 100644 --- a/pkg/skaffold/config/util_test.go +++ b/pkg/skaffold/config/util_test.go @@ -306,53 +306,18 @@ func TestIsImageLoadingRequired(t *testing.T) { cfg *ContextConfig expected bool }{ - { - cfg: &ContextConfig{Kubecontext: "kind-other"}, - expected: true, - }, - { - - cfg: &ContextConfig{Kubecontext: "kind-other", KindDisableLoad: util.BoolPtr(true)}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "kind@kind"}, - expected: true, - }, - { - cfg: &ContextConfig{Kubecontext: "k3d-k3s-default"}, - expected: true, - }, - { - cfg: &ContextConfig{Kubecontext: "k3d-k3s-default", K3dDisableLoad: util.BoolPtr(true)}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "docker-for-desktop"}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "minikube"}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "docker-desktop"}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "anything-else"}, - expected: false}, - { - cfg: &ContextConfig{Kubecontext: "kind@blah"}, - expected: false}, - { - cfg: &ContextConfig{Kubecontext: "other-kind"}, - expected: false, - }, - { - cfg: &ContextConfig{Kubecontext: "not-k3d"}, - expected: false, - }, + {cfg: &ContextConfig{Kubecontext: "kind-other"}, expected: true}, + {cfg: &ContextConfig{Kubecontext: "kind-other", KindDisableLoad: util.BoolPtr(true)}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "kind@kind"}, expected: true}, + {cfg: &ContextConfig{Kubecontext: "k3d-k3s-default"}, expected: true}, + {cfg: &ContextConfig{Kubecontext: "k3d-k3s-default", K3dDisableLoad: util.BoolPtr(true)}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "docker-for-desktop"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "minikube"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "docker-desktop"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "anything-else"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "kind@blah"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "other-kind"}, expected: false}, + {cfg: &ContextConfig{Kubecontext: "not-k3d"}, expected: false}, } for _, test := range tests { testutil.Run(t, "", func(t *testutil.T) {