MCPcopy
hub / github.com/helm/helm / TestGetValues_Run_EmptyValues

Function TestGetValues_Run_EmptyValues

pkg/action/get_values_test.go:142–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

140}
141
142func TestGetValues_Run_EmptyValues(t *testing.T) {
143 cfg := actionConfigFixture(t)
144 client := NewGetValues(cfg)
145
146 releaseName := "test-release"
147
148 rel := &release.Release{
149 Name: releaseName,
150 Info: &release.Info{
151 Status: common.StatusDeployed,
152 },
153 Chart: &chart.Chart{
154 Metadata: &chart.Metadata{
155 Name: "test-chart",
156 Version: "1.0.0",
157 },
158 },
159 Config: map[string]any{},
160 Version: 1,
161 Namespace: "default",
162 }
163
164 require.NoError(t, cfg.Releases.Create(rel))
165
166 result, err := client.Run(releaseName)
167 require.NoError(t, err)
168 assert.Equal(t, map[string]any{}, result)
169}
170
171func TestGetValues_Run_UnreachableKubeClient(t *testing.T) {
172 cfg := actionConfigFixture(t)

Callers

nothing calls this directly

Calls 4

RunMethod · 0.95
actionConfigFixtureFunction · 0.85
NewGetValuesFunction · 0.85
CreateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…