Skip to content

Commit

Permalink
Test Windows failure
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <[email protected]>
  • Loading branch information
natalieparellano committed Feb 2, 2024
1 parent 91e775c commit ef86f12
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions layout/layout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,16 @@ func testImage(t *testing.T, when spec.G, it spec.S) {
h.AssertError(t, err, "has no layers")
})
})

when("existing config has extra fields", func() {
it.Focus("returns an unmodified digest", func() {
img, err := layout.NewImage(imagePath, layout.FromBaseImagePath(filepath.Join("testdata", "layout", "busybox-sparse")))
h.AssertNil(t, err)
digest, err := img.Digest()
h.AssertNil(t, err)
h.AssertEq(t, digest.String(), "sha256:f75f3d1a317fc82c793d567de94fc8df2bece37acd5f2bd364a0d91a0d1f3dab")
})
})
})

when("#WithMediaTypes", func() {
Expand Down

0 comments on commit ef86f12

Please sign in to comment.