|
|
|
@ -102,9 +102,10 @@ func TestLoadArchive_InvalidArchive(t *testing.T) {
|
|
|
|
|
{"illegal-dots2.tgz", "/foo/../../malformed-helm-test", "chart illegally references parent directory"},
|
|
|
|
|
{"illegal-dots3.tgz", "/../../malformed-helm-test", "chart illegally references parent directory"},
|
|
|
|
|
{"illegal-dots4.tgz", "./../../malformed-helm-test", "chart illegally references parent directory"},
|
|
|
|
|
{"illegal-name.tgz", "./.", "chart illegally contains empty path"},
|
|
|
|
|
{"illegal-name2.tgz", "/./.", "chart illegally contains empty path"},
|
|
|
|
|
{"illegal-name3.tgz", "missing-leading-slash", "chart illegally contains empty path"},
|
|
|
|
|
{"illegal-name.tgz", "./.", "chart illegally contains content outside the base directory: \"./.\""},
|
|
|
|
|
{"illegal-name2.tgz", "/./.", "chart illegally contains content outside the base directory: \"/./.\""},
|
|
|
|
|
{"illegal-name3.tgz", "missing-leading-slash", "chart illegally contains content outside the base directory: \"missing-leading-slash\""},
|
|
|
|
|
{"illegal-name5.tgz", "content-outside-base-dir", "chart illegally contains content outside the base directory: \"content-outside-base-dir\""},
|
|
|
|
|
{"illegal-name4.tgz", "/missing-leading-slash", "chart metadata (Chart.yaml) missing"},
|
|
|
|
|
{"illegal-abspath.tgz", "//foo", "chart illegally contains absolute paths"},
|
|
|
|
|
{"illegal-abspath2.tgz", "///foo", "chart illegally contains absolute paths"},
|
|
|
|
|