MCPcopy Create free account
hub / github.com/cozystack/talm / TestMultiDocGeneric_LegacyFallback

Function TestMultiDocGeneric_LegacyFallback

pkg/engine/render_test.go:552–564  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

550}
551
552func TestMultiDocGeneric_LegacyFallback(t *testing.T) {
553 // v1.11 should produce legacy format
554 output := renderChartTemplate(t, "../../charts/generic", "templates/controlplane.yaml", "v1.11")
555
556 // Legacy format: machine.network present
557 assertContains(t, output, " network:")
558 assertContains(t, output, "hostname:")
559 assertContains(t, output, "interfaces:")
560
561 // No multi-doc types
562 assertNotContains(t, output, "kind: HostnameConfig")
563 assertNotContains(t, output, "kind: LinkConfig")
564}
565
566// createTestChart creates a minimal Helm chart in a temp directory with the
567// given template content. Returns the chart root path.

Callers

nothing calls this directly

Calls 3

renderChartTemplateFunction · 0.85
assertContainsFunction · 0.85
assertNotContainsFunction · 0.85

Tested by

no test coverage detected