Skip to content

Commit

Permalink
test: fixes sbom tests
Browse files Browse the repository at this point in the history
refs #2798

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Dec 30, 2021
1 parent cbdf8ca commit cdcaf03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion internal/pipe/archive/archive.go
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/apex/log"
"github.com/goreleaser/fileglob"

"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/ids"
"github.com/goreleaser/goreleaser/internal/semerrgroup"
Expand Down
10 changes: 1 addition & 9 deletions internal/pipe/sbom/sbom_test.go
Expand Up @@ -7,12 +7,10 @@ import (
"sort"
"testing"

"github.com/stretchr/testify/assert"

"github.com/goreleaser/goreleaser/internal/artifact"

"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -289,11 +287,9 @@ func TestSBOMCatalogArtifacts(t *testing.T) {
),
sbomPaths: []string{
"artifact3-name_1.2.2_linux_amd64.sbom",
"artifact4-name_1.2.2_linux_amd64.sbom",
},
sbomNames: []string{
"artifact3-name_1.2.2_linux_amd64.sbom",
"artifact4-name_1.2.2_linux_amd64.sbom",
},
},
{
Expand Down Expand Up @@ -344,13 +340,11 @@ func TestSBOMCatalogArtifacts(t *testing.T) {
"artifact1.s2-ish.sbom",
"artifact2.s2-ish.sbom",
"artifact3-name_1.2.2_linux_amd64.sbom",
"artifact4-name_1.2.2_linux_amd64.sbom",
},
sbomNames: []string{
"artifact1.s2-ish.sbom",
"artifact2.s2-ish.sbom",
"artifact3-name_1.2.2_linux_amd64.sbom",
"artifact4-name_1.2.2_linux_amd64.sbom",
},
},
{
Expand Down Expand Up @@ -398,11 +392,9 @@ func TestSBOMCatalogArtifacts(t *testing.T) {
),
sbomPaths: []string{
"artifact3-name.test-user-name.sbom",
"artifact4.test-user-name.sbom",
},
sbomNames: []string{
"artifact3-name.test-user-name.sbom",
"artifact4.test-user-name.sbom",
},
},
{
Expand Down

0 comments on commit cdcaf03

Please sign in to comment.