Merge pull request #5012 from natasha41575/reponotfileerr

make TestResourcesRepoNotFile even less specific
This commit is contained in:
Kubernetes Prow Robot
2023-01-31 11:16:50 -08:00
committed by GitHub

View File

@@ -456,7 +456,7 @@ func TestResourcesRepoNotFile(t *testing.T) {
_, 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)
var actualErr PathLocalizeError
require.ErrorAs(t, err, &actualErr)