Init project
This commit is contained in:
24
internal/tools/helm/helmlib_test.go
Normal file
24
internal/tools/helm/helmlib_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package helm_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/allanger/yaho/internal/tools/helm"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestPullChart(t *testing.T) {
|
||||
helmlib := &helm.HelmLib{}
|
||||
path, err := helmlib.PullChart("https://coredns.github.io/helm", "coredns", "1.42.0")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "test", path)
|
||||
}
|
||||
|
||||
func TestPullChartOci(t *testing.T) {
|
||||
helmlib := &helm.HelmLib{}
|
||||
path, err := helmlib.PullChart("oci://ghcr.io/allanger/allangers-charts", "memos", "0.6.0")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "test", path)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user