MCPcopy
hub / github.com/helm/helm / TestInstallRelease_WithNotesRendered

Function TestInstallRelease_WithNotesRendered

pkg/action/install_test.go:370–390  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

368}
369
370func TestInstallRelease_WithNotesRendered(t *testing.T) {
371 is := assert.New(t)
372 instAction := installAction(t)
373 instAction.ReleaseName = "with-notes"
374 vals := map[string]any{}
375 resi, err := instAction.Run(buildChart(withNotes("got-{{.Release.Name}}")), vals)
376 if err != nil {
377 t.Fatalf("Failed install: %s", err)
378 }
379 res, err := releaserToV1Release(resi)
380 is.NoError(err)
381
382 r, err := instAction.cfg.Releases.Get(res.Name, res.Version)
383 is.NoError(err)
384 rel, err := releaserToV1Release(r)
385 is.NoError(err)
386
387 expectedNotes := "got-" + res.Name
388 is.Equal(expectedNotes, rel.Info.Notes)
389 is.Equal(rel.Info.Description, "Install complete")
390}
391
392func TestInstallRelease_WithChartAndDependencyParentNotes(t *testing.T) {
393 // Regression: Make sure that the child's notes don't override the parent's

Callers

nothing calls this directly

Calls 7

installActionFunction · 0.85
buildChartFunction · 0.85
withNotesFunction · 0.85
FatalfMethod · 0.80
releaserToV1ReleaseFunction · 0.70
RunMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…