-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(e2e): use generated API methods #3874
Conversation
69ded07 because the patch use case is already tested in "Scale integration with polymorphic client". The goal of this test looks to be correctly testing the behavior of a get and a set operation. If it keeps failing, we should investigate the reason why the update is failing instead.
@phantomjinx, I had a further look and it seems that the "patch" scenario is already tested in
I've tried to enable the // +genclient:method=PatchScale,verb=patch,subresource=patch,result=k8s.io/api/autoscaling/v1.Scale but the generation is failing. Looking further on the test, it seems that the original goal of this test was to really test the getter and the setter of the autogenerated Integration Scale client. Is this correct @astefanutti? so, if it keeps failing we should find the reason why the autogenerated code is broken IMO.
Are you okey on reverting these changes? what was the "well known" behavior you were trying to fix? |
It should ideally be possible to patch the integration scale sub-resource via the generated client and find the right syntax to have the corresponding method generated. |
Yeah, it was the first thing I tried, but it fails with:
In any case, in theory, the update should be reliable, and in the test it seems it works correctly. For this reason I was trying to understand how to correctly leverage the autogenerated code for this test. |
I need to merge this as it is blocking #3837 (the release process run a |
Closes #3818
Release Note