Skip to content

Commit

Permalink
fix: A couple small fixes to the descriptor test (#1452)
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
Terry Howe authored Jul 23, 2024
1 parent 341ceb8 commit 7a88524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/descriptor/descriptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ var (
}

imageDesc = ocispec.Descriptor{
MediaType: "application/vnd.oci.image.manifest.v1+json",
MediaType: ocispec.MediaTypeImageManifest,
Digest: "sha256:2e0e0fe1fb3edbcdddad941c90d2b51e25a6bcd593e82545441a216de7bfa834",
Size: 474,
}

titledDesc = ocispec.Descriptor{
MediaType: "application/vnd.oci.image.manifest.v1+json",
MediaType: ocispec.MediaTypeImageManifest,
Digest: "sha256:2e0e0fe1fb3edbcdddad941c90d2b51e25a6bcd593e82545441a216de7bfa834",
Size: 474,
Annotations: map[string]string{"org.opencontainers.image.title": "shaboozey"},
Expand Down Expand Up @@ -88,6 +88,6 @@ func TestDescriptor_GenerateContentKey(t *testing.T) {
expected := "sha256:2e0e0fe1fb3edbcdddad941c90d2b51e25a6bcd593e82545441a216de7bfa834shaboozey"
got := descriptor.GenerateContentKey(titledDesc)
if expected != got {
t.Fatalf("GetTitleOrMediaType() got %v, want %v", got, expected)
t.Fatalf("GenerateContentKey got %v, want %v", got, expected)
}
}

0 comments on commit 7a88524

Please sign in to comment.