MCPcopy Index your code
hub / github.com/helm/helm / TestCreateCmdInvalidChartAPIVersion

Function TestCreateCmdInvalidChartAPIVersion

pkg/cmd/create_test.go:285–300  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

283}
284
285func TestCreateCmdInvalidChartAPIVersion(t *testing.T) {
286 t.Chdir(t.TempDir())
287 ensure.HelmHome(t)
288 cname := "testchart"
289
290 // Run a create with invalid version
291 _, _, err := executeActionCommand("create --chart-api-version=v1 " + cname)
292 if err == nil {
293 t.Fatal("Expected error for invalid API version, got nil")
294 }
295
296 expectedErr := "unsupported chart API version: v1 (supported: v2, v3)"
297 if err.Error() != expectedErr {
298 t.Errorf("Expected error %q, got %q", expectedErr, err.Error())
299 }
300}

Callers

nothing calls this directly

Calls 4

HelmHomeFunction · 0.92
executeActionCommandFunction · 0.85
FatalMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…