mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
cpe: update tests to match new ANY in product name
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
d8da43b410
commit
5d057db5ec
1 changed files with 7 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
|||
package cpe
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/anchore/syft/syft/pkg"
|
||||
"github.com/sergi/go-diff/diffmatchpatch"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func must(c CPE, e error) CPE {
|
||||
|
@ -72,6 +73,11 @@ func TestGenerate(t *testing.T) {
|
|||
must(New("cpe:2.3:*:name:name:3.2:*:*:*:*:jenkins:*:*")),
|
||||
must(New("cpe:2.3:*:name:name:3.2:*:*:*:*:cloudbees_jenkins:*:*")),
|
||||
must(New("cpe:2.3:*:name:name:3.2:*:*:*:*:*:*:*")),
|
||||
must(New("cpe:2.3:*:*:name:3.2:*:*:*:*:java:*:*")),
|
||||
must(New("cpe:2.3:*:*:name:3.2:*:*:*:*:maven:*:*")),
|
||||
must(New("cpe:2.3:*:*:name:3.2:*:*:*:*:jenkins:*:*")),
|
||||
must(New("cpe:2.3:*:*:name:3.2:*:*:*:*:cloudbees_jenkins:*:*")),
|
||||
must(New("cpe:2.3:*:*:name:3.2:*:*:*:*:*:*:*")),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue