-
Notifications
You must be signed in to change notification settings - Fork 212
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
conformance: make references tests part of content discovery workflow #430
Conversation
f458549
to
8bd7ce2
Compare
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
8bd7ce2
to
26c0530
Compare
req = client.NewRequest(reggie.PUT, "/v2/<name>/manifests/<reference>", | ||
reggie.WithReference(refsManifestALayerArtifactDigest)). | ||
SetHeader("Content-Type", "application/vnd.oci.image.manifest.v1+json"). | ||
SetBody(refsManifestALayerArtifactContent) |
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.
Hi @jdolitsky
Looking at this test @peusebiu and I noticed refsManifestALayerArtifactContent
actually contains a reference to layer testRefBlobB
(see https://github.com/opencontainers/distribution-spec/blob/main/conformance/setup.go#L396), which is not yet uploaded to the registry.
My understanding of the push specifications is that layer blobs should be pushed by the client before the manifest.
If the server decides to reject them, it remains fully compliant. So why would the test check the server accepts this upload.
We're not sure if this is by design of the test, or a bug, as testRefBlobB
is uploaded later at line 198.
On the other hand the code in setup.go is strange, maybe testRefBlobA
should have been reference there in setup.go at line 396
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.
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.
Yes, I defer to Ram. In this PR I tried to just copy-paste his work
…opencontainers#430) Signed-off-by: Josh Dolitsky <josh@dolit.ski>
No description provided.