Support various target and resource with go-getter

This commit is contained in:
Kubernetes Prow Robot
2020-03-06 15:45:34 -08:00
committed by Yujun Zhang
parent 3a2635bd2d
commit 51b29d7023
9 changed files with 228 additions and 45 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)
}
}