mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
21 lines
538 B
Go
21 lines
538 B
Go
package integration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/source"
|
|
)
|
|
|
|
func TestPhotonPackageRegression(t *testing.T) { // Regression: https://github.com/anchore/syft/pull/1997
|
|
sbom, _ := catalogFixtureImage(t, "image-photon-all-layers", source.AllLayersScope, nil)
|
|
var packages []pkg.Package
|
|
for p := range sbom.Artifacts.Packages.Enumerate() {
|
|
packages = append(packages, p)
|
|
}
|
|
|
|
if len(packages) < 1 {
|
|
t.Errorf("failed to find packages for photon distro; wanted > 0 got 0")
|
|
}
|
|
}
|