|
|
@ -141,15 +141,15 @@ func TestRepoRemove(t *testing.T) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) {
|
|
|
|
func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) {
|
|
|
|
idx := filepath.Join(rootDir, helmpath.CacheIndexFile(repoName))
|
|
|
|
cacheIndexFile = filepath.Join(rootDir, helmpath.CacheIndexFile(repoName))
|
|
|
|
mf, _ := os.Create(idx)
|
|
|
|
mf, _ := os.Create(cacheIndexFile)
|
|
|
|
mf.Close()
|
|
|
|
mf.Close()
|
|
|
|
|
|
|
|
|
|
|
|
idx2 := filepath.Join(rootDir, helmpath.CacheChartsFile(repoName))
|
|
|
|
cacheChartsFile = filepath.Join(rootDir, helmpath.CacheChartsFile(repoName))
|
|
|
|
mf, _ = os.Create(idx2)
|
|
|
|
mf, _ = os.Create(cacheChartsFile)
|
|
|
|
mf.Close()
|
|
|
|
mf.Close()
|
|
|
|
|
|
|
|
|
|
|
|
return idx, idx2
|
|
|
|
return cacheIndexFile, cacheChartsFile
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {
|
|
|
|
func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {
|
|
|
|