From ef86f12ca54aef55303a49f96453bd33cd17c42d Mon Sep 17 00:00:00 2001 From: Natalie Arellano Date: Fri, 2 Feb 2024 16:30:27 -0500 Subject: [PATCH] Test Windows failure Signed-off-by: Natalie Arellano --- layout/layout_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/layout/layout_test.go b/layout/layout_test.go index 14582624..849c5e83 100644 --- a/layout/layout_test.go +++ b/layout/layout_test.go @@ -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() {