From 0cf7ab6908dd28dc40e34163d68af0cf4db1747c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 23:30:57 +0000 Subject: [PATCH] test: add test case for both includeNeeds and includeTransitiveNeeds enabled Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com> Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/c0b910d1-387a-476e-beb9-ea38ab6c1061 --- pkg/state/selector_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/state/selector_test.go b/pkg/state/selector_test.go index 2d25bfcf..e027b9a6 100644 --- a/pkg/state/selector_test.go +++ b/pkg/state/selector_test.go @@ -165,6 +165,13 @@ func TestSelectReleasesWithOverridesWithIncludedTransitives(t *testing.T) { includeNeeds: false, includeTransitiveNeeds: true, }, + { + subject: "include both direct and transitive needs", + selector: []string{"name=serviceA"}, + want: []string{"serviceA", "serviceB", "serviceC"}, + includeNeeds: true, + includeTransitiveNeeds: true, + }, } example := []byte(`releases: