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
This commit is contained in:
copilot-swe-agent[bot] 2026-03-24 23:30:57 +00:00
parent 4fada4f73c
commit 0cf7ab6908
1 changed files with 7 additions and 0 deletions

View File

@ -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: