(t *testing.T)
| 529 | } |
| 530 | |
| 531 | func TestMultiDocGeneric_Worker(t *testing.T) { |
| 532 | output := renderChartTemplateWithLookup(t, "../../charts/generic", "templates/worker.yaml", simpleNicLookup(), "v1.12") |
| 533 | |
| 534 | // Multi-doc: machine section present |
| 535 | assertContains(t, output, "machine:") |
| 536 | assertContains(t, output, "type: worker") |
| 537 | assertContains(t, output, "kubelet:") |
| 538 | assertContains(t, output, "install:") |
| 539 | |
| 540 | // Multi-doc: deprecated machine.network fields REMOVED |
| 541 | assertNotContains(t, output, " interfaces:") |
| 542 | |
| 543 | // Multi-doc: new document types present |
| 544 | assertContains(t, output, "kind: HostnameConfig") |
| 545 | assertContains(t, output, "kind: ResolverConfig") |
| 546 | assertContains(t, output, "kind: LinkConfig") |
| 547 | |
| 548 | // Worker should NOT have VIP |
| 549 | assertNotContains(t, output, "kind: Layer2VIPConfig") |
| 550 | } |
| 551 | |
| 552 | func TestMultiDocGeneric_LegacyFallback(t *testing.T) { |
| 553 | // v1.11 should produce legacy format |
nothing calls this directly
no test coverage detected