Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <[email protected]>
  • Loading branch information
kzantow committed Sep 4, 2024
1 parent aa35bc9 commit 7629dc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/syft/internal/commands/attest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func Test_buildSBOMForAttestation(t *testing.T) {
if tt.wantErr == nil {
tt.wantErr = require.NoError
}
_, err := generateSBOMForAttestation(context.Background(), tt.args.id, tt.args.opts, tt.args.userInput)
_, err := generateSBOMForAttestation(context.Background(), tt.args.id, tt.args.opts, options.Network{}, tt.args.userInput)
tt.wantErr(t, err)
if err != nil {
return
Expand Down
4 changes: 2 additions & 2 deletions cmd/syft/internal/test/integration/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

func TestFileCataloging_Default(t *testing.T) {
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{})
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{}, options.Network{})
cfg = cfg.WithFilesConfig(filecataloging.DefaultConfig())
sbom, _ := catalogDirectoryWithConfig(t, "test-fixtures/files", cfg)

Expand All @@ -34,7 +34,7 @@ func TestFileCataloging_Default(t *testing.T) {
}

func TestFileCataloging_AllFiles(t *testing.T) {
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{})
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{}, options.Network{})
cfg = cfg.WithFilesConfig(filecataloging.Config{
Selection: file.AllFilesSelection,
Hashers: []crypto.Hash{
Expand Down
4 changes: 2 additions & 2 deletions cmd/syft/internal/test/integration/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func catalogFixtureImage(t *testing.T, fixtureImageName string, scope source.Sco
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{
Name: "syft-tester",
Version: "v0.99.0",
}).WithCatalogerSelection(
}, options.Network{}).WithCatalogerSelection(
pkgcataloging.NewSelectionRequest().
WithExpression(catalogerSelection...),
)
Expand Down Expand Up @@ -54,7 +54,7 @@ func catalogDirectory(t *testing.T, dir string, catalogerSelection ...string) (s
cfg := options.DefaultCatalog().ToSBOMConfig(clio.Identification{
Name: "syft-tester",
Version: "v0.99.0",
}).WithCatalogerSelection(
}, options.Network{}).WithCatalogerSelection(
pkgcataloging.NewSelectionRequest().
WithExpression(catalogerSelection...),
)
Expand Down

0 comments on commit 7629dc1

Please sign in to comment.