add more tests

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2025-04-19 08:02:36 +08:00
parent d9140cebbb
commit d524e116ca
1 changed files with 12 additions and 0 deletions

View File

@ -424,6 +424,18 @@ func TestAppendTakeOwnershipFlagsForUpgrade(t *testing.T) {
expected: []string{"--take-ownership"}, expected: []string{"--take-ownership"},
}, },
}, },
{
name: "take-ownership from release",
args: args{
flags: []string{},
helm: testutil.NewVersionHelmExec("3.17.0"),
release: &ReleaseSpec{
TakeOwnership: &[]bool{true}[0],
},
opt: &SyncOpts{},
expected: []string{"--take-ownership"},
},
},
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {