Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Alajrami committed Apr 28, 2018
1 parent dec253e commit e8810b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
32 changes: 16 additions & 16 deletions state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit e8810b2

Please sign in to comment.