-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test failure: k8s.io/kubernetes/pkg/registry/storage/csidriver/storage.TestUpdate #76236
Comments
/sig storage |
How is CI passing on master if this is failing? cc @kubernetes/sig-testing |
@liggitt this test has a skip in the beginning if api version is not |
Ah. We should not have unit tests like that. @kubernetes/sig-storage-test-failures can we remove the skips in tests like this and remove any dependency on the testapi package that forces this behavior? xref #69929 (comment) cc @gnufied |
@liggitt I still see these CSIDriver* and CSINode* are still in beta1 stage, tests will not run if we remove the skip! you can check the failures in https://github.com/kubernetes/kubernetes/pull/76237/files https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api/storage/v1beta1/types.go#L304 I'm just wondering is there is other way to run these testcases!! |
the best way would be to switch the test to use the same storage config as the kubeapiserver, like the last commit in https://github.com/liggitt/kubernetes/commits/fix_storage_test |
That's great! Let me cherrypick your commit :P |
I added a second commit as well to fix up job and cronjob tests in the same way |
pushed that one too :) |
What happened:
Fails with the following error:
In the testcase we are trying to update the immutable field which is wrong, that is happening because of invalid parameter passed to
test.TestUpdate
need to fix by sendingupdate update
followed byinvalid update
What you expected to happen:
Test should pass
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: