Skip to content

Commit

Permalink
Merge pull request meshery#5245 from piyushsingariya/add/meshery-cillium
Browse files Browse the repository at this point in the history
[Meshery] Handling unit tests failure
  • Loading branch information
warunicorn19 authored Mar 28, 2022
2 parents 183fa44 + f3a81c4 commit 14c4ee4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ contexts:
- meshery-osm
- meshery-traefik-mesh
- meshery-nginx-sm
- meshery-cilium
channel: stable
version: latest
current-context: local
Expand Down
10 changes: 8 additions & 2 deletions mesheryctl/pkg/utils/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ func TestSetOverrideValues(t *testing.T) {
"meshery-istio": map[string]interface{}{
"enabled": true,
},
"meshery-cilium": map[string]interface{}{
"enabled": false,
},
"meshery-linkerd": map[string]interface{}{
"enabled": false,
},
Expand Down Expand Up @@ -612,7 +615,7 @@ func TestSetOverrideValues(t *testing.T) {
name: "Context contains all available components and meshery image version",
ctx: &config.Context{
Components: []string{"meshery-istio", "meshery-linkerd", "meshery-consul", "meshery-kuma",
"meshery-osm", "meshery-nsm", "meshery-nginx-sm", "meshery-traefik-mesh", "meshery-cpx"},
"meshery-osm", "meshery-nsm", "meshery-nginx-sm", "meshery-traefik-mesh", "meshery-cpx", "meshery-cilium"},
Channel: testChannel,
},
mesheryImageVersion: "testImageVersion",
Expand All @@ -623,6 +626,9 @@ func TestSetOverrideValues(t *testing.T) {
"meshery-istio": map[string]interface{}{
"enabled": true,
},
"meshery-cilium": map[string]interface{}{
"enabled": true,
},
"meshery-linkerd": map[string]interface{}{
"enabled": true,
},
Expand Down Expand Up @@ -658,7 +664,7 @@ func TestSetOverrideValues(t *testing.T) {
got := SetOverrideValues(tt.ctx, tt.mesheryImageVersion)
eq := reflect.DeepEqual(got, tt.want)
if !eq {
t.Errorf("ReadToken got = %v want = %v", got, tt.want)
t.Errorf("SetOverrideValues %s got = %v want = %v", tt.name, got, tt.want)
}
}
}

0 comments on commit 14c4ee4

Please sign in to comment.