|
|
|
@ -23,6 +23,7 @@ import (
|
|
|
|
|
"os"
|
|
|
|
|
"path/filepath"
|
|
|
|
|
"regexp"
|
|
|
|
|
"strings"
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
@ -200,7 +201,10 @@ func TestInstallRelease_WithChartAndDependencyAllNotes(t *testing.T) {
|
|
|
|
|
rel, err := instAction.cfg.Releases.Get(res.Name, res.Version)
|
|
|
|
|
is.Equal("with-notes", rel.Name)
|
|
|
|
|
is.NoError(err)
|
|
|
|
|
is.Equal("parent\nchild", rel.Info.Notes)
|
|
|
|
|
// test run can return as either 'parent\nchild' or 'child\nparent'
|
|
|
|
|
if !strings.Contains(rel.Info.Notes, "parent") && !strings.Contains(rel.Info.Notes, "child") {
|
|
|
|
|
t.Fatalf("Expected 'parent\nchild' or 'child\nparent', got '%s'", rel.Info.Notes)
|
|
|
|
|
}
|
|
|
|
|
is.Equal(rel.Info.Description, "Install complete")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|