Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
e2e storage testsuites: avoid timeout in "volumeMode should fail in binding dynamic provisioned PV to PVC" #71748
What would you like to be added:
Here's how the test is written at the moment:
During a normal test run, this
Instead, the test should wait for the expected error condition and fail if that isn't reached within the timeout period.
Why is this needed:
Faster test execution, more precise testing (no false positives when the operation fails for some other reason).
Thank you for pointing it out.
I think that this will be achieved by the similar way to #71428, it checks that proper events happen instead of waiting for not success.
However, because events are not reliable, #71570 will change it to waiting for not success.
Are there any good ideas to check proper failure instead of waiting not fail or relying on events?
Michelle Au <firstname.lastname@example.org> writes:
For PVC errors, I'm not sure if there's a great way. For the Pod subpath error, the error is propagated to Pod conditions. But PVC does not have a similar field.
They get posted as status, but I agree, this might not be easy to wait for.