You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update test assertions for:
- DoTestPodVMwithAnnotationsInvalidInstanceType
- DoTestPodVMwithAnnotationsLargerMemory
- DoTestPodVMwithAnnotationsLargerCPU
In these cases, PeerPods do not transition to the Failed state but
remain in the Pending state. Although the expected event occurs,
the tests were failing due to incorrect state checks.
Signed-off-by: Patrik Fodor <[email protected]>
expectedErrorMessage:=`requested instance type ("`+expectedType+`") is not part of supported instance types list`
333
-
NewTestCase(t, e, "PodVMwithAnnotationsInvalidInstanceType", assert, "Failed to Create PodVM with Annotations Invalid InstanceType").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodFailed).Run()
333
+
NewTestCase(t, e, "PodVMwithAnnotationsInvalidInstanceType", assert, "Failed to Create PodVM with Annotations Invalid InstanceType").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodPending).Run()
334
334
}
335
335
336
336
funcDoTestPodVMwithAnnotationsLargerMemory(t*testing.T, e env.Environment, assertCloudAssert) {
@@ -343,7 +343,7 @@ func DoTestPodVMwithAnnotationsLargerMemory(t *testing.T, e env.Environment, ass
expectedErrorMessage:="failed to get instance type based on vCPU and memory annotations: no instance type found for the given vcpus (2) and memory (22528)"
346
-
NewTestCase(t, e, "PodVMwithAnnotationsLargerMemory", assert, "Failed to Create PodVM with Annotations Larger Memory").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodFailed).Run()
346
+
NewTestCase(t, e, "PodVMwithAnnotationsLargerMemory", assert, "Failed to Create PodVM with Annotations Larger Memory").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodPending).Run()
347
347
}
348
348
349
349
funcDoTestPodVMwithAnnotationsLargerCPU(t*testing.T, e env.Environment, assertCloudAssert) {
@@ -356,7 +356,7 @@ func DoTestPodVMwithAnnotationsLargerCPU(t *testing.T, e env.Environment, assert
expectedErrorMessage:="no instance type found for the given vcpus (5) and memory (12288)"
359
-
NewTestCase(t, e, "PodVMwithAnnotationsLargerCPU", assert, "Failed to Create PodVM with Annotations Larger CPU").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodFailed).Run()
359
+
NewTestCase(t, e, "PodVMwithAnnotationsLargerCPU", assert, "Failed to Create PodVM with Annotations Larger CPU").WithPod(pod).WithExpectedPodEventError(expectedErrorMessage).WithCustomPodState(v1.PodPending).Run()
360
360
}
361
361
362
362
funcDoTestCreatePeerPodContainerWithValidAlternateImage(t*testing.T, e env.Environment, assertCloudAssert, alternateImageNamestring) {
0 commit comments