Skip to content

test: expand BuildCollectionArtifact test coverage #16

@pavelanni

Description

@pavelanni

From code review of PR #15.

TestBuildCollectionArtifact only asserts that the digest is non-empty. It should also verify:

  • Manifest has correct ArtifactType
  • Annotations are populated (title, version, collection name)
  • Layer media type is application/vnd.skillimage.collection.v1+yaml
  • Round-trip via extractCollectionYAML returns the original collection

File: pkg/oci/collection_test.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions