From 6e5bed9551971204245e41233dbdf6e66ba72177 Mon Sep 17 00:00:00 2001 From: Yannick Alexander Date: Sat, 25 Apr 2026 19:08:05 +0200 Subject: [PATCH] added test case for query parameter in validateHost Signed-off-by: Yannick Alexander --- pkg/registry/client_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/registry/client_test.go b/pkg/registry/client_test.go index 0140b038c..47782135a 100644 --- a/pkg/registry/client_test.go +++ b/pkg/registry/client_test.go @@ -214,6 +214,11 @@ func TestValidateHost(t *testing.T) { host: "", wantErr: true, }, + { + name: "url with query parameters", + host: "ghcr.io?param=value", + wantErr: true, + }, } for _, tt := range tests {