(t *testing.T)
| 412 | } |
| 413 | |
| 414 | func TestInstallRelease_WithChartAndDependencyAllNotes(t *testing.T) { |
| 415 | // Regression: Make sure that the child's notes don't override the parent's |
| 416 | is := assert.New(t) |
| 417 | instAction := installAction(t) |
| 418 | instAction.ReleaseName = "with-notes" |
| 419 | instAction.SubNotes = true |
| 420 | vals := map[string]any{} |
| 421 | resi, err := instAction.Run(buildChart(withNotes("parent"), withDependency(withNotes("child"))), vals) |
| 422 | if err != nil { |
| 423 | t.Fatalf("Failed install: %s", err) |
| 424 | } |
| 425 | res, err := releaserToV1Release(resi) |
| 426 | is.NoError(err) |
| 427 | |
| 428 | r, err := instAction.cfg.Releases.Get(res.Name, res.Version) |
| 429 | is.NoError(err) |
| 430 | rel, err := releaserToV1Release(r) |
| 431 | is.NoError(err) |
| 432 | is.Equal("with-notes", rel.Name) |
| 433 | // test run can return as either 'parent\nchild' or 'child\nparent' |
| 434 | if !strings.Contains(rel.Info.Notes, "parent") && !strings.Contains(rel.Info.Notes, "child") { |
| 435 | t.Fatalf("Expected 'parent\nchild' or 'child\nparent', got '%s'", rel.Info.Notes) |
| 436 | } |
| 437 | is.Equal(rel.Info.Description, "Install complete") |
| 438 | } |
| 439 | |
| 440 | func TestInstallRelease_DryRunClient(t *testing.T) { |
| 441 | for _, dryRunStrategy := range []DryRunStrategy{DryRunClient, DryRunServer} { |
nothing calls this directly
no test coverage detected
searching dependent graphs…