-
Notifications
You must be signed in to change notification settings - Fork 245
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
Fake Client does not create error for invalid projects #2314
Comments
This is actually not a bug but a feature :-) of a fakeclient. In the k8s cluster the validation happens on the server. Fake client, as the name suggests is just a client and there is no sever, so there can't be any validation. |
Right, But is there any way to validate such cases using fakeclient ? If no then then the scenario of incorrect project name will be taken care in integration test. |
This is one of those cases where odo shouldn't be responsible for testing this ( on a unit level atleast), as the tests for validation would have been written by k8s cluster ( as the validation happens on that end ) |
An integration test might still make sense if you want to validate this behavior with some other behavior across modules or function. |
+1 |
Thanks for the clarification. Will take care it in integration test. I guess there is a scenario in integration test, otherwise will add one. /close |
@amitkrout: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[kind/bug]
What versions of software are you using?
odo version
: master branchAny logs, error output, etc?
When I ran
odo project create DEMO
through the CLI I got the error message whereas when I ran through fake client unit test it does not occur.Outputs
CLI:
Fake Client:
The text was updated successfully, but these errors were encountered: