mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
* add a cataloger for binaries built with rust-audit Signed-off-by: Tom Fay <tomfay@microsoft.com>
26 lines
544 B
Go
26 lines
544 B
Go
package integration
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/source"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/anchore/syft/syft/linux"
|
|
)
|
|
|
|
func TestDistroImage(t *testing.T) {
|
|
sbom, _ := catalogFixtureImage(t, "image-distro-id", source.SquashedScope, false)
|
|
|
|
expected := &linux.Release{
|
|
PrettyName: "BusyBox v1.31.1",
|
|
Name: "busybox",
|
|
ID: "busybox",
|
|
IDLike: []string{"busybox"},
|
|
Version: "1.31.1",
|
|
VersionID: "1.31.1",
|
|
}
|
|
|
|
assert.Equal(t, expected, sbom.Artifacts.LinuxDistribution)
|
|
}
|