From 88b8e490ecb0c8702981a459fa602a9c0b316279 Mon Sep 17 00:00:00 2001 From: Brandyn Bayes Date: Thu, 23 Jan 2025 10:13:52 -0800 Subject: [PATCH] Update oci reader tests Signed-off-by: Brandyn Bayes --- oci/layout/reader_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oci/layout/reader_test.go b/oci/layout/reader_test.go index d59c281bd..ec0784f15 100644 --- a/oci/layout/reader_test.go +++ b/oci/layout/reader_test.go @@ -35,14 +35,16 @@ func TestList(t *testing.T) { }, { path: "fixtures/name_lookups", - num: 4, + num: 6, digests: []string{ "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", + "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", }, - names: map[int]string{0: "a", 1: "b", 2: "invalid-mime", 3: "invalid-mime"}, + names: map[int]string{0: "a", 1: "b", 2: "c", 3: "d", 4: "e", 5: "invalid-mime"}, }, } { results, err := List(test.path)