INNER CODE UNIT · Go
TestGetTemplateDryRunFlags
databus23/helm-diff · cmd/helm_test.go:119
func TestGetTemplateDryRunFlags(t *testing.T) {
cases := []struct {
name string
config dryRunFlagsConfig
expected []string
}{
{
name: "Helm v4 with no explicit dry-run flag uses server mode",
config: dryRunFlagsConfig{
isHelmV4: true,
supportsDryRunLookup: true,
clusterAccessAllowed: true,
disableValidation: false,
dryRunMode: "none",
},
expected: []string{"--dry-run=server"},
},
{