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

Function TestMultiDocCozystack_NoVIPOnFreshDefaults

pkg/engine/render_test.go:7237–7241  ·  view source on GitHub ↗

TestMultiDocCozystack_NoVIPOnFreshDefaults asserts the corollary: a fresh install keeps floatingIP blank, so Layer2VIPConfig must not appear. This is the regression guard for the shipped-placeholder fix — any future commit that re-introduces a non-empty floatingIP default fails this test.

(t *testing.T)

Source from the content-addressed store, hash-verified

7235// fix — any future commit that re-introduces a non-empty floatingIP
7236// default fails this test.
7237func TestMultiDocCozystack_NoVIPOnFreshDefaults(t *testing.T) {
7238 result := renderCozystackWith(t, simpleNicLookup(), map[string]any{})
7239
7240 assertNotContains(t, result, "kind: Layer2VIPConfig")
7241}
7242
7243// TestMultiDocCozystack_VIPLinkOverride pins the chicken-and-egg fix
7244// for nodes that need the VIP on a link that does not yet exist on

Callers

nothing calls this directly

Calls 3

renderCozystackWithFunction · 0.85
simpleNicLookupFunction · 0.85
assertNotContainsFunction · 0.85

Tested by

no test coverage detected