mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 14:50:53 -08:00
feat(redhat): support build info in RHEL (#807)
This commit is contained in:
@@ -124,55 +124,49 @@ func TestTar(t *testing.T) {
|
||||
},
|
||||
golden: "testdata/ubuntu-1804-ignore-unfixed.json.golden",
|
||||
},
|
||||
// TODO: it will be fixed after support for Red Hat OVALv2
|
||||
//{
|
||||
// name: "centos 7 integration",
|
||||
// testArgs: args{
|
||||
// Version: "dev",
|
||||
// Format: "json",
|
||||
// Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
// },
|
||||
// golden: "testdata/centos-7.json.golden",
|
||||
//},
|
||||
//{
|
||||
// name: "centos 7 integration with --ignore-unfixed option",
|
||||
// testArgs: args{
|
||||
// Version: "dev",
|
||||
// IgnoreUnfixed: true,
|
||||
// Format: "json",
|
||||
// Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
// },
|
||||
// golden: "testdata/centos-7-ignore-unfixed.json.golden",
|
||||
//},
|
||||
//{
|
||||
// name: "centos 7 integration with low and high severity",
|
||||
// testArgs: args{
|
||||
// Version: "dev",
|
||||
// IgnoreUnfixed: true,
|
||||
// Severity: []string{"LOW", "HIGH"},
|
||||
// Format: "json",
|
||||
// Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
// },
|
||||
// golden: "testdata/centos-7-low-high.json.golden",
|
||||
//},
|
||||
//{
|
||||
// name: "centos 6 integration",
|
||||
// testArgs: args{
|
||||
// Version: "dev",
|
||||
// Format: "json",
|
||||
// Input: "testdata/fixtures/images/centos-6.tar.gz",
|
||||
// },
|
||||
// golden: "testdata/centos-6.json.golden",
|
||||
//},
|
||||
//{
|
||||
// name: "ubi 7 integration",
|
||||
// testArgs: args{
|
||||
// Version: "dev",
|
||||
// Format: "json",
|
||||
// Input: "testdata/fixtures/images/ubi-7.tar.gz",
|
||||
// },
|
||||
// golden: "testdata/ubi-7.json.golden",
|
||||
//},
|
||||
{
|
||||
name: "centos 7",
|
||||
testArgs: args{
|
||||
Format: "json",
|
||||
Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
},
|
||||
golden: "testdata/centos-7.json.golden",
|
||||
},
|
||||
{
|
||||
name: "centos 7with --ignore-unfixed option",
|
||||
testArgs: args{
|
||||
IgnoreUnfixed: true,
|
||||
Format: "json",
|
||||
Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
},
|
||||
golden: "testdata/centos-7-ignore-unfixed.json.golden",
|
||||
},
|
||||
{
|
||||
name: "centos 7 with medium severity",
|
||||
testArgs: args{
|
||||
IgnoreUnfixed: true,
|
||||
Severity: []string{"MEDIUM"},
|
||||
Format: "json",
|
||||
Input: "testdata/fixtures/images/centos-7.tar.gz",
|
||||
},
|
||||
golden: "testdata/centos-7-medium.json.golden",
|
||||
},
|
||||
{
|
||||
name: "centos 6",
|
||||
testArgs: args{
|
||||
Format: "json",
|
||||
Input: "testdata/fixtures/images/centos-6.tar.gz",
|
||||
},
|
||||
golden: "testdata/centos-6.json.golden",
|
||||
},
|
||||
{
|
||||
name: "ubi 7",
|
||||
testArgs: args{
|
||||
Format: "json",
|
||||
Input: "testdata/fixtures/images/ubi-7.tar.gz",
|
||||
},
|
||||
golden: "testdata/ubi-7.json.golden",
|
||||
},
|
||||
{
|
||||
name: "almalinux 8",
|
||||
testArgs: args{
|
||||
|
||||
Reference in New Issue
Block a user