From 923fbdaa0aec3c2e3387e37a558770014191f42a Mon Sep 17 00:00:00 2001 From: rcohencyberarmor Date: Mon, 14 Aug 2023 16:02:21 +0300 Subject: [PATCH] add test case for registry that run on our system test Signed-off-by: rcohencyberarmor --- internal/tools/tools_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/tools/tools_test.go b/internal/tools/tools_test.go index 0ba4202..774bda3 100644 --- a/internal/tools/tools_test.go +++ b/internal/tools/tools_test.go @@ -133,6 +133,13 @@ func TestNormalizeReference(t *testing.T) { }, want: "quay.io/kubescape/kubevuln:latest@sha256:616d1d4312551b94088deb6ddab232ecabbbff0c289949a0d5f12d4b527c3f8a", }, + { + name: "some image other registry", + args: args{ + ref: "public-registry.systest-ns-na6n:5000/nginx:test", + }, + want: "public-registry.systest-ns-na6n:5000/nginx:test", + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {