Skip to content

Commit

Permalink
chore: add unit test for wolfi os release identification (#1340)
Browse files Browse the repository at this point in the history
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
  • Loading branch information
westonsteimel authored Nov 14, 2022
1 parent c1fdfce commit 09bf5b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syft/linux/identify_release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,16 @@ func TestIdentifyRelease(t *testing.T) {
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 {
Expand Down
5 changes: 5 additions & 0 deletions syft/linux/test-fixtures/os/wolfi/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ID=wolfi
NAME="Wolfi"
PRETTY_NAME="Wolfi"
VERSION_ID="20220914"
HOME_URL="https://wolfi.dev"

0 comments on commit 09bf5b0

Please sign in to comment.