chore: update tests

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2025-10-23 15:00:05 -04:00
parent 7c644ea3d1
commit 51159ce204
No known key found for this signature in database
GPG Key ID: 735988DA57708682
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
) )
// NewDBCataloger returns a new Deb package cataloger capable of parsing DPKG status DB flat-file stores. // 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 { func NewDBCataloger() pkg.Cataloger {
return NewDpkgDBCataloger(DefaultCatalogerConfig()) 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 // NewArchiveCataloger returns a new Debian package cataloger object capable of parsing .deb archive files
// Deprecated: use NewDpkgArchiveCataloger with a configuration
func NewArchiveCataloger() pkg.Cataloger { func NewArchiveCataloger() pkg.Cataloger {
return NewDpkgDBCataloger(DefaultCatalogerConfig()) return NewDpkgDBCataloger(DefaultCatalogerConfig())
} }

View File

@ -281,7 +281,7 @@ func TestDpkgArchiveCataloger(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
c := NewArchiveCataloger() c := NewDpkgArchiveCataloger(CatalogerConfig{IncludeDeInstalled: true})
pkgtest.NewCatalogTester(). pkgtest.NewCatalogTester().
WithImageResolver(t, tt.name). WithImageResolver(t, tt.name).
IgnoreLocationLayer(). // this fixture can be rebuilt, thus the layer ID will change IgnoreLocationLayer(). // this fixture can be rebuilt, thus the layer ID will change