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

Function TestMultiDocGeneric_ValidClusterNameOverride

pkg/engine/render_test.go:7147–7153  ·  view source on GitHub ↗

TestMultiDocGeneric_ValidSubnetsFallsBackToDiscovery mirrors the cozystack-side smoke test for ensuring clusterName overrides make it through to the result.

(t *testing.T)

Source from the content-addressed store, hash-verified

7145// cozystack-side smoke test for ensuring clusterName overrides make
7146// it through to the result.
7147func TestMultiDocGeneric_ValidClusterNameOverride(t *testing.T) {
7148 result := renderGenericWith(t, simpleNicLookup(), map[string]any{
7149 "clusterName": "differentclustername",
7150 })
7151
7152 assertContains(t, result, "clusterName: \"differentclustername\"")
7153}
7154
7155// TestMultiDocGeneric_ValidSubnetsFallsBackToDiscovery mirrors the
7156// cozystack-side smoke test for the generic preset. A single

Callers

nothing calls this directly

Calls 3

renderGenericWithFunction · 0.85
simpleNicLookupFunction · 0.85
assertContainsFunction · 0.85

Tested by

no test coverage detected