handle analysis of image with tag and digest

This commit is contained in:
CrazyMax
2023-09-16 18:40:53 +02:00
parent 281e28e8b7
commit 522c8e9448
9 changed files with 42 additions and 47 deletions

View File

@@ -21,11 +21,11 @@ func TestValidateImage(t *testing.T) {
expectedErr interface{}
}{
{
name: "Test strip digest",
name: "Test with digest",
image: "myimg@sha256:1234567890abcdef",
watchByDef: true,
expectedImage: model.Image{
Name: "myimg",
Name: "myimg@sha256:1234567890abcdef",
},
expectedErr: nil,
},