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)
| 7235 | // fix — any future commit that re-introduces a non-empty floatingIP |
| 7236 | // default fails this test. |
| 7237 | func 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 |
nothing calls this directly
no test coverage detected