From e8810b2ef52ec498b01bce226858cbb2f27e1220 Mon Sep 17 00:00:00 2001 From: Sami Alajrami Date: Sat, 28 Apr 2018 19:48:31 +0200 Subject: [PATCH] fixing tests --- release_test.go | 2 +- state_test.go | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/release_test.go b/release_test.go index 0874bc05..ac83b8d7 100644 --- a/release_test.go +++ b/release_test.go @@ -10,7 +10,7 @@ func Test_validateRelease(t *testing.T) { Metadata: make(map[string]string), Certificates: make(map[string]string), Settings: make(map[string]string), - Namespaces: map[string]namespace{"namespace": namespace{false}}, + Namespaces: map[string]namespace{"namespace": namespace{false, false, "", "", "", "", "", ""}}, HelmRepos: make(map[string]string), Apps: make(map[string]*release), } diff --git a/state_test.go b/state_test.go index e3185fb0..4c7259a0 100644 --- a/state_test.go +++ b/state_test.go @@ -34,7 +34,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -53,7 +53,7 @@ func Test_state_validate(t *testing.T) { }, Settings: nil, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -77,7 +77,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -98,7 +98,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -122,7 +122,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -146,7 +146,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "$URI", // unset env }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -170,7 +170,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "$SET_URI", // set env var }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -194,7 +194,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https//192.168.99.100:8443", // invalid url }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -217,7 +217,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -238,7 +238,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -262,7 +262,7 @@ func Test_state_validate(t *testing.T) { "clusterURI": "https://192.168.99.100:8443", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -280,7 +280,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -330,7 +330,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: nil, Apps: make(map[string]*release), @@ -345,7 +345,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{}, Apps: make(map[string]*release), @@ -360,7 +360,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com", @@ -378,7 +378,7 @@ func Test_state_validate(t *testing.T) { "kubeContext": "minikube", }, Namespaces: map[string]namespace{ - "staging": namespace{false}, + "staging": namespace{false, false, "", "", "", "", "", ""}, }, HelmRepos: map[string]string{ "stable": "https://kubernetes-charts.storage.googleapis.com",