@@ -18,10 +18,6 @@ func GetBaseDir() string {
|
||||
return BaseDir
|
||||
}
|
||||
|
||||
func GetDockerDir() string {
|
||||
return filepath.Join(mcnutils.GetHomeDir(), ".docker")
|
||||
}
|
||||
|
||||
func GetMachineDir() string {
|
||||
return filepath.Join(GetBaseDir(), "machines")
|
||||
}
|
||||
@@ -29,7 +25,3 @@ func GetMachineDir() string {
|
||||
func GetMachineCertDir() string {
|
||||
return filepath.Join(GetBaseDir(), "certs")
|
||||
}
|
||||
|
||||
func GetMachineCacheDir() string {
|
||||
return filepath.Join(GetBaseDir(), "cache")
|
||||
}
|
||||
|
||||
@@ -31,15 +31,6 @@ func TestGetCustomBaseDir(t *testing.T) {
|
||||
BaseDir = ""
|
||||
}
|
||||
|
||||
func TestGetDockerDir(t *testing.T) {
|
||||
homeDir := mcnutils.GetHomeDir()
|
||||
baseDir := GetBaseDir()
|
||||
|
||||
if strings.Index(baseDir, homeDir) != 0 {
|
||||
t.Fatalf("expected base dir with prefix %s; received %s", homeDir, baseDir)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetMachineDir(t *testing.T) {
|
||||
root := "/tmp"
|
||||
BaseDir = root
|
||||
|
||||
Reference in New Issue
Block a user