mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Update error message assertions
This commit is contained in:
parent
a8e1c67667
commit
ac37f69f17
@ -814,12 +814,12 @@ func TestKustomizeDirectoryBuilder(t *testing.T) {
|
|||||||
{
|
{
|
||||||
directory: filepath.Join(dir, "kustomization.yaml"),
|
directory: filepath.Join(dir, "kustomization.yaml"),
|
||||||
expectErr: true,
|
expectErr: true,
|
||||||
errMsg: "must be a directory to be a root",
|
errMsg: "must be a directory so that it can used as a build root",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
directory: "../../artifacts/kustomization/should-not-load.yaml",
|
directory: "../../artifacts/kustomization/should-not-load.yaml",
|
||||||
expectErr: true,
|
expectErr: true,
|
||||||
errMsg: "must be a directory to be a root",
|
errMsg: "must be a directory so that it can used as a build root",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user