-
Notifications
You must be signed in to change notification settings - Fork 481
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
Add tests for imagetools inspect #2298
Add tests for imagetools inspect #2298
Conversation
c654bcf
to
fcc3041
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! LGTM
2e628dd
to
638ec6c
Compare
638ec6c
to
f96c50c
Compare
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
f96c50c
to
fa006f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge this but overall I think it is less likely that a breakage will happen in one of these private helper functions that is unit tested and more likely that something breaks in handling inspect --format
input in relation to attestations and goes unnoticed. Also, as these are private functions, they don't have a strict contract and could be modified freely (what likely requires test modification as well).
For the integration tests that check the feature, these are atm in https://github.com/docker/buildx/blob/v0.13/tests/imagetools.go . As this PR also tests images that can't be built with buildx, it makes it trickier as for that the integration test would need to manually push such an image from raw manifest objects.
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
fa006f6
to
abff444
Compare
@tonistiigi I kept the test pretty high level so they shouldn't be high maintenance. Our team is also proposing a new way to do signature of SBOM so having these tests will be helpful down the line |
No description provided.