init bin
This commit is contained in:
22
src/helm/version_test.go
Normal file
22
src/helm/version_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user