From 51159ce204c3f1bdc2a87fa04d3b7e83e3d56eb5 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Thu, 23 Oct 2025 15:00:05 -0400 Subject: [PATCH] chore: update tests Signed-off-by: Keith Zantow --- syft/pkg/cataloger/debian/cataloger.go | 2 ++ syft/pkg/cataloger/debian/cataloger_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/syft/pkg/cataloger/debian/cataloger.go b/syft/pkg/cataloger/debian/cataloger.go index 0e47eead7..7e0fe103a 100644 --- a/syft/pkg/cataloger/debian/cataloger.go +++ b/syft/pkg/cataloger/debian/cataloger.go @@ -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()) } diff --git a/syft/pkg/cataloger/debian/cataloger_test.go b/syft/pkg/cataloger/debian/cataloger_test.go index 02bd23c9e..3a382a3af 100644 --- a/syft/pkg/cataloger/debian/cataloger_test.go +++ b/syft/pkg/cataloger/debian/cataloger_test.go @@ -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