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

Function TestMultiDocCozystack_ValidClusterNameOverride

pkg/engine/render_test.go:7107–7113  ·  view source on GitHub ↗

TestMultiDocCozystack_ValidClusterNameOverride ensures clusterName overrides make it through to the result.

(t *testing.T)

Source from the content-addressed store, hash-verified

7105// TestMultiDocCozystack_ValidClusterNameOverride ensures clusterName
7106// overrides make it through to the result.
7107func TestMultiDocCozystack_ValidClusterNameOverride(t *testing.T) {
7108 result := renderCozystackWith(t, simpleNicLookup(), map[string]any{
7109 "clusterName": "differentclustername",
7110 })
7111
7112 assertContains(t, result, "clusterName: \"differentclustername\"")
7113}
7114
7115// TestMultiDocGeneric_InvalidSubnetsFallsBackToDiscovery mirrors the
7116// cozystack-side smoke test for ensuring invalid clusterName

Callers

nothing calls this directly

Calls 3

renderCozystackWithFunction · 0.85
simpleNicLookupFunction · 0.85
assertContainsFunction · 0.85

Tested by

no test coverage detected