Skip to content

Commit

Permalink
conformance: skip check (by default) for zero layers in image manifest
Browse files Browse the repository at this point in the history
As per image-spec, since this is a SHOULD (hence recommended) ...

https://raw.githubusercontent.com/opencontainers/image-spec/main/manifest.md
===

    layers array of objects

    Each item in the array MUST be a descriptor. For portability, layers
    SHOULD have at least one entry.

===

One can enable this test by setting env var:
OCI_SKIP_EMPTY_LAYER_PUSH_TEST=1

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed May 26, 2023
1 parent 44aad65 commit 028d12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conformance/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func init() {
runPushSetup = true
runContentDiscoverySetup = true
runContentManagementSetup = true
skipEmptyLayerTest = false
skipEmptyLayerTest = true
deleteManifestBeforeBlobs = false

if os.Getenv(envVarTagName) != "" &&
Expand Down

0 comments on commit 028d12d

Please sign in to comment.