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

Function TestLegacyGeneric_Worker

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

Source from the content-addressed store, hash-verified

310}
311
312func 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

Callers

nothing calls this directly

Calls 3

renderChartTemplateFunction · 0.85
assertContainsFunction · 0.85
assertNotContainsFunction · 0.85

Tested by

no test coverage detected