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

@@ -494,9 +494,9 @@ func TestWithBinding(t *testing.T) {
Pod: createPodWithVolume("pod_1", "vol_1", "PVC_NoSC"),
Node: testNode,
wantPreFilterStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable,
"unable to find storage class: Class_0"),
`storageclasses.storage.k8s.io "Class_0" not found`),
wantFilterStatus: framework.NewStatus(framework.UnschedulableAndUnresolvable,
"unable to find storage class: Class_0"),
`storageclasses.storage.k8s.io "Class_0" not found`),
},
{
name: "unbound volume immediate binding mode",