Init project
Some checks failed
Lint / Run on Ubuntu (push) Has been cancelled
E2E Tests / Run on Ubuntu (push) Has been cancelled
Tests / Run on Ubuntu (push) Has been cancelled

This commit is contained in:
2025-07-15 17:58:36 +02:00
parent 61902f4159
commit 7c2294d9df
77 changed files with 4797 additions and 0 deletions

View 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)
}