Replace git cloner with go getter to support various target

This commit is contained in:
Yujun Zhang
2020-01-29 18:18:22 +08:00
committed by Yujun Zhang
parent 6c2c08c4df
commit fae66446a8
7 changed files with 228 additions and 31 deletions

View File

@@ -4,6 +4,7 @@
package krusty_test
import (
"strings"
"testing"
"sigs.k8s.io/kustomize/api/filesys"
@@ -21,7 +22,7 @@ func TestEmptyFileSystem(t *testing.T) {
if err == nil {
t.Fatalf("expected error")
}
if err.Error() != "'noSuchThing' doesn't exist" {
if !strings.Contains(err.Error(), "'noSuchThing' doesn't exist") {
t.Fatalf("unexpected error: %v", err)
}
}