chore: add unit test for wolfi os release identification (#1340)

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
This commit is contained in:
Weston Steimel 2022-11-14 23:57:31 +00:00 committed by GitHub
parent c1fdfce5f1
commit 09bf5b062c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -321,6 +321,16 @@ func TestIdentifyRelease(t *testing.T) {
CPEName: "cpe:/o:almalinux:almalinux:8.4:GA", CPEName: "cpe:/o:almalinux:almalinux:8.4:GA",
}, },
}, },
{
fixture: "test-fixtures/os/wolfi",
release: &Release{
PrettyName: "Wolfi",
Name: "Wolfi",
ID: "wolfi",
VersionID: "20220914",
HomeURL: "https://wolfi.dev",
},
},
} }
for _, test := range tests { for _, test := range tests {

View File

@ -0,0 +1,5 @@
ID=wolfi
NAME="Wolfi"
PRETTY_NAME="Wolfi"
VERSION_ID="20220914"
HOME_URL="https://wolfi.dev"