(t *testing.T)
| 310 | } |
| 311 | |
| 312 | func TestLegacyGeneric_Worker(t *testing.T) { |
| 313 | output := renderChartTemplate(t, "../../charts/generic", "templates/worker.yaml") |
| 314 | |
| 315 | // Legacy format: machine section present |
| 316 | assertContains(t, output, "machine:") |
| 317 | assertContains(t, output, "type: worker") |
| 318 | assertContains(t, output, "network:") |
| 319 | assertContains(t, output, "hostname:") |
| 320 | assertContains(t, output, "interfaces:") |
| 321 | |
| 322 | // Legacy format: cluster section present |
| 323 | assertContains(t, output, "cluster:") |
| 324 | |
| 325 | // No v1.12 multi-doc types |
| 326 | assertNotContains(t, output, "kind: HostnameConfig") |
| 327 | assertNotContains(t, output, "kind: LinkConfig") |
| 328 | } |
| 329 | |
| 330 | // --- Multi-doc format tests for cozystack (v1.12+) --- |
| 331 |
nothing calls this directly
no test coverage detected