(t *testing.T)
| 261 | } |
| 262 | |
| 263 | func TestLegacyCozystack_Worker(t *testing.T) { |
| 264 | output := renderChartTemplate(t, "../../charts/cozystack", "templates/worker.yaml") |
| 265 | |
| 266 | // Legacy format: machine section present |
| 267 | assertContains(t, output, "machine:") |
| 268 | assertContains(t, output, "type: worker") |
| 269 | assertContains(t, output, "network:") |
| 270 | assertContains(t, output, "hostname:") |
| 271 | assertContains(t, output, "interfaces:") |
| 272 | assertContains(t, output, "registries:") |
| 273 | |
| 274 | // Legacy format: cluster section present |
| 275 | assertContains(t, output, "cluster:") |
| 276 | |
| 277 | // Worker should NOT have controlplane-specific settings |
| 278 | assertNotContains(t, output, "allowSchedulingOnControlPlanes:") |
| 279 | |
| 280 | // No v1.12 multi-doc types |
| 281 | assertNotContains(t, output, "kind: HostnameConfig") |
| 282 | assertNotContains(t, output, "kind: RegistryMirrorConfig") |
| 283 | assertNotContains(t, output, "kind: Layer2VIPConfig") |
| 284 | } |
| 285 | |
| 286 | func TestLegacyGeneric_ControlPlane(t *testing.T) { |
| 287 | output := renderChartTemplate(t, "../../charts/generic", "templates/controlplane.yaml") |
nothing calls this directly
no test coverage detected