moving to chart tests

This commit is contained in:
Nikola Jokic
2026-01-09 17:32:54 +01:00
parent beef400c07
commit 1ce073b56e
10 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package tests
import (
"path/filepath"
"strings"
"github.com/gruntwork-io/terratest/modules/random"
)
var chartPath string
func init() {
var err error
chartPath, err = filepath.Abs("../../gha-runner-scale-set-dev")
if err != nil {
panic(err)
}
}
// generateNamespace generates namespace with given prefix
// If prefix is not specified, a default prefix "test-" is used
func generateNamespace(prefix string) string {
if prefix == "" {
prefix = "test-"
}
return prefix + strings.ToLower(random.UniqueId())
}