fixup! feat: Add support for --wait-retries flag.

add test case for mixing release and defaults

Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
This commit is contained in:
Connor Hindley 2025-02-11 14:41:36 -06:00
parent 5a68e553c5
commit 69d2c7f276
No known key found for this signature in database
GPG Key ID: 3293949A7BFEEB6C
1 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,14 @@ func TestAppendWaitFlags(t *testing.T) {
helmSpec: HelmSpec{Wait: true, WaitRetries: 3}, helmSpec: HelmSpec{Wait: true, WaitRetries: 3},
expected: []string{"--wait", "--wait-retries", "3"}, expected: []string{"--wait", "--wait-retries", "3"},
}, },
{
name: "release wait default retries",
release: &ReleaseSpec{Wait: &[]bool{true}[0]},
syncOpts: nil,
helm: testutil.NewVersionHelmExec("3.15.0"),
helmSpec: HelmSpec{WaitRetries: 4},
expected: []string{"--wait", "--wait-retries", "4"},
},
} }
for _, tt := range tests { for _, tt := range tests {