(t *testing.T)
| 550 | } |
| 551 | |
| 552 | func 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. |
nothing calls this directly
no test coverage detected