|
|
@ -99,6 +99,8 @@ func TestToRenderValues(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
o := ReleaseOptions{
|
|
|
|
o := ReleaseOptions{
|
|
|
|
Name: "Seven Voyages",
|
|
|
|
Name: "Seven Voyages",
|
|
|
|
|
|
|
|
Namespace: "default",
|
|
|
|
|
|
|
|
Revision: 1,
|
|
|
|
IsInstall: true,
|
|
|
|
IsInstall: true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -115,6 +117,12 @@ func TestToRenderValues(t *testing.T) {
|
|
|
|
if name := relmap["Name"]; name.(string) != "Seven Voyages" {
|
|
|
|
if name := relmap["Name"]; name.(string) != "Seven Voyages" {
|
|
|
|
t.Errorf("Expected release name 'Seven Voyages', got %q", name)
|
|
|
|
t.Errorf("Expected release name 'Seven Voyages', got %q", name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if namespace := relmap["Namespace"]; namespace.(string) != "default" {
|
|
|
|
|
|
|
|
t.Errorf("Expected namespace 'default', got %q", namespace)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if revision := relmap["Revision"]; revision.(int) != 1 {
|
|
|
|
|
|
|
|
t.Errorf("Expected revision '1', got %d", revision)
|
|
|
|
|
|
|
|
}
|
|
|
|
if relmap["IsUpgrade"].(bool) {
|
|
|
|
if relmap["IsUpgrade"].(bool) {
|
|
|
|
t.Error("Expected upgrade to be false.")
|
|
|
|
t.Error("Expected upgrade to be false.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|