Closed dtfranz closed 2 months ago
Name | Link |
---|---|
Latest commit | 2f877e6836e7f0a37d308f81d799f34f4838d0bf |
Latest deploy log | https://app.netlify.com/sites/olmv1/deploys/66a7c02d0f003100080f32c6 |
Deploy Preview | https://deploy-preview-1084--olmv1.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.31%. Comparing base (
ea9ebca
) to head (2f877e6
). Report is 7 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Any missed error conditions?
Any missed error conditions?
I haven't found a good way to cover the errors from ToUnstructured
and FromUnstructured
yet.
I haven't found a good way to cover the errors from ToUnstructured and FromUnstructured yet.
@dtfranz You might be able to create an interface that the CRD Upgrade Safety preflight type takes in as an exported, configurable field and then mock it for testing
I haven't found a good way to cover the errors from ToUnstructured and FromUnstructured yet.
@dtfranz You might be able to create an interface that the CRD Upgrade Safety preflight type takes in as an exported, configurable field and then mock it for testing
Was thinking about this but do you think it's worthwhile? It doesn't really buy us that much and would require us to hack up the preflight type just to cover two lines.
The other thing was I could never get those errors to trigger with the json I provided. If the json is invalid, we hit an earlier error, and if the CRD schema inside is invalid it doesn't care at all (it ignores unknown fields by default).
Was thinking about this but do you think it's worthwhile?
@dtfranz probably not. Covering those 2 lines isn't going to block me from approving
Adds unit test coverage to the
bundleutil
andcrdupgradesafety
packages. Also prunes some unused code.Reviewer Checklist