feat(redhat): support build info in RHEL (#807)

This commit is contained in:
Teppei Fukuda
2022-01-28 18:35:00 +02:00
committed by GitHub
parent ce703ce4a5
commit d2827cba06
24 changed files with 1172 additions and 89460 deletions

View File

@@ -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{