Skip to content

Commit

Permalink
add test case for registry that run on our system test
Browse files Browse the repository at this point in the history
Signed-off-by: rcohencyberarmor <rcohen@armosec.io>
  • Loading branch information
rcohencyberarmor committed Aug 14, 2023
1 parent 600bd63 commit 923fbda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/tools/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 923fbda

Please sign in to comment.