mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
chore: update tests
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
parent
7c644ea3d1
commit
51159ce204
@ -10,6 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// NewDBCataloger returns a new Deb package cataloger capable of parsing DPKG status DB flat-file stores.
|
||||
// Deprecated: use NewDpkgDBCataloger with a configuration
|
||||
func NewDBCataloger() pkg.Cataloger {
|
||||
return NewDpkgDBCataloger(DefaultCatalogerConfig())
|
||||
}
|
||||
@ -24,6 +25,7 @@ func NewDpkgDBCataloger(cfg CatalogerConfig) pkg.Cataloger {
|
||||
}
|
||||
|
||||
// NewArchiveCataloger returns a new Debian package cataloger object capable of parsing .deb archive files
|
||||
// Deprecated: use NewDpkgArchiveCataloger with a configuration
|
||||
func NewArchiveCataloger() pkg.Cataloger {
|
||||
return NewDpkgDBCataloger(DefaultCatalogerConfig())
|
||||
}
|
||||
|
||||
@ -281,7 +281,7 @@ func TestDpkgArchiveCataloger(t *testing.T) {
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
c := NewArchiveCataloger()
|
||||
c := NewDpkgArchiveCataloger(CatalogerConfig{IncludeDeInstalled: true})
|
||||
pkgtest.NewCatalogTester().
|
||||
WithImageResolver(t, tt.name).
|
||||
IgnoreLocationLayer(). // this fixture can be rebuilt, thus the layer ID will change
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user