From 634aa31c1f9b20c448b6404530b86455afe922eb Mon Sep 17 00:00:00 2001 From: James Payne Date: Mon, 16 Jun 2025 22:37:17 +0100 Subject: [PATCH] Fixes review comments Use correct acronym for OCI resources Signed-off-by: James Payne --- pkg/registry/util_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/registry/util_test.go b/pkg/registry/util_test.go index 0dcf7a07e..98159a419 100644 --- a/pkg/registry/util_test.go +++ b/pkg/registry/util_test.go @@ -280,28 +280,28 @@ func TestIsOCI(t *testing.T) { tests := []struct { name string - url string + uri string isValid bool }{ { - name: "Valid url", - url: "oci://example.com/myregistry:1.2.3", + name: "Valid URI", + uri: "oci://example.com/myregistry:1.2.3", isValid: true, }, { - name: "Invalid URL prefix (boundary test 1)", - url: "noci://example.com/myregistry:1.2.3", + name: "Invalid URI prefix (boundary test 1)", + uri: "noci://example.com/myregistry:1.2.3", isValid: false, }, { - name: "Invalid URL prefix (boundary test 2)", - url: "ocin://example.com/myregistry:1.2.3", + name: "Invalid URI prefix (boundary test 2)", + uri: "ocin://example.com/myregistry:1.2.3", isValid: false, }, } for _, tt := range tests { - assert.Equal(t, tt.isValid, IsOCI(tt.url), tt.name) + assert.Equal(t, tt.isValid, IsOCI(tt.uri), tt.name) } }