From 5e68b4fad34b5bb06c6c3fe8a6ebc9a723d59faa Mon Sep 17 00:00:00 2001 From: Vlad Fratila Date: Wed, 30 Sep 2020 20:14:09 +0300 Subject: [PATCH] remove duplicated test --- pkg/chartutil/create_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/pkg/chartutil/create_test.go b/pkg/chartutil/create_test.go index 99e673719..9a473fc59 100644 --- a/pkg/chartutil/create_test.go +++ b/pkg/chartutil/create_test.go @@ -118,33 +118,6 @@ func TestCreateFrom(t *testing.T) { } } -func TestValidateChartName(t *testing.T) { - for name, shouldPass := range map[string]bool{ - "": false, - "abcdefghijklmnopqrstuvwxyz-_.": true, - "ABCDEFGHIJKLMNOPQRSTUVWXYZ-_.": true, - "$hello": false, - "HellĂ´": false, - "he%%o": false, - "he\nllo": false, - - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "abcdefghijklmnopqrstuvwxyz-_." + - "ABCDEFGHIJKLMNOPQRSTUVWXYZ-_.": false, - } { - if err := validateChartName(name); (err != nil) == shouldPass { - t.Errorf("test for %q failed", name) - } - } -} - // TestCreate_Overwrite is a regression test for making sure that files are overwritten. func TestCreate_Overwrite(t *testing.T) { tdir, err := ioutil.TempDir("", "helm-")