Skip to content

Commit

Permalink
removing unit-test condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasSUSE committed Feb 12, 2025
1 parent 3c4067f commit 47efd9e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pkg/auto/chart_bump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,6 @@ func Test_parsePackageYaml(t *testing.T) {
},
expected: expected{err: errCRDWorkDir},
},
{
name: "#13",
input: input{
packages: newValidPackagesFunc(),
b: &Bump{targetChart: "rancher-chart"},
},
expected: expected{err: errAdditionalChartCRDValidation},
},
}

for _, tc := range tests {
Expand Down Expand Up @@ -492,25 +484,6 @@ func Test_parsePackageYaml(t *testing.T) {
},
},
}
case "#13":
someBranch := "some-branch"
someSubDir := "some-subdir"
// use the newInvalidUpstreamFunc but passing valid options; these options are being tested above.
validUpstreamOpts := newInvalidUpstreamFunc(options.UpstreamOptions{
URL: "https://github.com/<owner/<repo>.git",
ChartRepoBranch: &someBranch,
Subdirectory: &someSubDir,
})
tc.input.packages[0].AdditionalCharts = []*charts.AdditionalChart{
{
Upstream: &validUpstreamOpts,
CRDChartOptions: &options.CRDChartOptions{
TemplateDirectory: "crd-template",
CRDDirectory: "templates",
AddCRDValidationToMainChart: false,
},
},
}
}

err := tc.input.b.parsePackageYaml(tc.input.packages)
Expand Down

0 comments on commit 47efd9e

Please sign in to comment.