return not-found errors properly from fake listeres

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k
2023-11-19 15:21:29 +09:00
parent 46f4248d56
commit aba817ac1d
4 changed files with 9 additions and 14 deletions

View File

@@ -495,7 +495,7 @@ func TestCSILimits(t *testing.T) {
ephemeralEnabled: true,
driverNames: []string{ebsCSIDriverName},
test: "ephemeral volume missing",
wantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaim "abc-xyz" not found`)),
wantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaims "abc-xyz" not found`)),
},
{
newPod: ephemeralVolumePod,
@@ -595,7 +595,7 @@ func TestCSILimits(t *testing.T) {
ephemeralEnabled: true,
driverNames: []string{ebsCSIDriverName},
test: "don't skip Filter when the pod has ephemeral volumes",
wantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaim "abc-xyz" not found`)),
wantStatus: framework.AsStatus(errors.New(`looking up PVC test/abc-xyz: persistentvolumeclaims "abc-xyz" not found`)),
},
{
newPod: inlineMigratablePodWithConfigmapAndSecret,