-
Notifications
You must be signed in to change notification settings - Fork 90
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
Improve testing - Using text files that represent object might be able to be improved. #53
Comments
You don't need to update a lot of text documents with the current implementation. If what you get is expected, the '-update' command line flag for test will do the needed update of fixtures. The problem with the Those are just my thoughts and not something what I insist on. |
That is gonna get fixed. Great point and opening an issue. And I think that will help with part of this. I am a gke guy and rarely run k8s locally, so hence I ran into this. I opened this issue mostly to write and think about this, as we will probably have to test this against GKE and other on-prem systems to pass testing. |
@vladdy on a personal note, I very much appreciate your incite and feedback. You know this project a lot better than I do, and did a ton of work on it. It is in really good shape, and I appreciate what you have done with it. I am lucky to work on this now, and collaborate with you more in the future! |
Thanks Chris. I would be happy to help with some work here. |
Closing for now, an reopen if we need it |
Testing against strings that represent objects is a bit too fragile for my preference. I am wondering if
Would work better. When we update API or the k8s API is updated I do not want to modify a ton of text documents. Also as I an into with Calico, the objects are even modified by the Kubernetes server. I had to remove the Pod annotations added by calico in order to get the e2e testing to pass.
I like it when unit won't compile when APIs are updated. I am uncertain about how to address this well.
I would love feedback on this design.
The text was updated successfully, but these errors were encountered: