INNER CODE UNIT · Go
TestRunGenerateValues_Success
bjw-s-labs/helm-charts · tools/helm-schema-tools/cmd/helm-schema-tools/main_test.go:20
func TestRunGenerateValues_Success(t *testing.T) {
requireSchematoolsCLI(t)
// Create a temp directory with a test schema
tmpDir := t.TempDir()
schemaPath := filepath.Join(tmpDir, "test.schema.json")
outputPath := filepath.Join(tmpDir, "values.yaml")
schema := `{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"description": "Application name",
"type": "string",
"default": "my-app"
}
}
}`