TestMultiDocGeneric_VIPLinkOverride mirrors the cozystack VIP-link override test for the generic preset. The two charts share helper shape, so the override must apply symmetrically — without this the generic-preset apply pipeline would still pin the VIP onto the physical NIC discovered at first appl
(t *testing.T)
| 7175 | // physical NIC discovered at first apply when the operator wanted |
| 7176 | // the VIP on a not-yet-existing VLAN sub-interface. |
| 7177 | func TestMultiDocGeneric_VIPLinkOverride(t *testing.T) { |
| 7178 | result := renderGenericWith(t, simpleNicLookup(), map[string]any{ |
| 7179 | "floatingIP": "192.168.201.5", |
| 7180 | "vipLink": "eth0.4000", |
| 7181 | }) |
| 7182 | |
| 7183 | assertContains(t, result, "kind: Layer2VIPConfig") |
| 7184 | assertContains(t, result, "link: eth0.4000") |
| 7185 | assertNotContains(t, result, "link: eth0\n") |
| 7186 | } |
| 7187 | |
| 7188 | // TestMultiDocCozystack_ShippedDefaultsFailFresh asserts that a fresh |
| 7189 | // `talm init -p cozystack` user who keeps values.yaml defaults gets a |
nothing calls this directly
no test coverage detected