Skip to content
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 handling of unknown fields to conformance tests #311

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Dec 1, 2021

This change also removes the direct dependency on Go types defined in
the image-spec repo, since this made it difficult to define new fields.

Instead, the types are copied into this repo and modified to remove
unused fields, and add a new unspecified field for use in the test.

Signed-off-by: Jason Hall jasonhall@redhat.com


Note: I haven't run this against any real registries yet, I wanted to get feedback about the general direction before proceeding too much further.

cc @jdolitsky our beloved conformance czar 👑

This change also removes the direct dependency on Go types defined in
the image-spec repo, since this made it difficult to define new fields.

Instead, the types are copied into this repo and modified to remove
unused fields, and add a new unspecified field for use in the test.

Signed-off-by: Jason Hall <jasonhall@redhat.com>
Copy link
Member

@jdolitsky jdolitsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with the general direction. Also tested this against bundlebar and zot with no issues

@jdolitsky jdolitsky merged commit 05097b7 into opencontainers:main Dec 1, 2021
@jdolitsky jdolitsky mentioned this pull request Sep 15, 2022
@sudo-bmitch sudo-bmitch mentioned this pull request Feb 1, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants