mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
make TestResourcesRepoNotFile even less specific
This commit is contained in:
@@ -456,7 +456,7 @@ func TestResourcesRepoNotFile(t *testing.T) {
|
|||||||
|
|
||||||
_, err := localizer.Run(fsActual, testDir.String(), "", testDir.Join("dst"))
|
_, err := localizer.Run(fsActual, testDir.String(), "", testDir.Join("dst"))
|
||||||
|
|
||||||
fileErr := fmt.Sprintf(`invalid resource at file "%s": MalformedYAMLError`, repo)
|
fileErr := fmt.Sprintf(`invalid resource at file "%s"`, repo)
|
||||||
rootErr := fmt.Sprintf(`unable to localize root "%s": unable to find one of 'kustomization.yaml', 'kustomization.yml' or 'Kustomization'`, repo)
|
rootErr := fmt.Sprintf(`unable to localize root "%s": unable to find one of 'kustomization.yaml', 'kustomization.yml' or 'Kustomization'`, repo)
|
||||||
var actualErr PathLocalizeError
|
var actualErr PathLocalizeError
|
||||||
require.ErrorAs(t, err, &actualErr)
|
require.ErrorAs(t, err, &actualErr)
|
||||||
|
|||||||
Reference in New Issue
Block a user