22 lines
432 B
Go
22 lines
432 B
Go
package helm
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestHelmVersion(t *testing.T){
|
|
|
|
bin := filepath.Join(TEST_BIN_DIR, "helm")
|
|
os.Chmod(bin, 0700)
|
|
assert.FileExists(t, bin, "TestHelmVersion error")
|
|
|
|
version, err := Version(bin)
|
|
|
|
assert.Nilf(t, err, "error message %s", bin)
|
|
assert.Equal(t, version, "v3.15.4+gfa9efb0", "TestHelmVersion error")
|
|
} |