feat(misconf): Use updated terminology for misconfiguration checks (#6476)

Signed-off-by: Simar <simar@linux.com>
This commit is contained in:
simar7
2024-05-02 12:16:17 -06:00
committed by GitHub
parent cdee7030ac
commit 37da98df45
52 changed files with 1074 additions and 398 deletions

View File

@@ -43,7 +43,7 @@ Java DB:
UpdatedAt: 2023-03-14 00:47:02.774253754 +0000 UTC
NextUpdate: 2023-03-17 00:47:02.774253254 +0000 UTC
DownloadedAt: 2023-03-14 03:04:55.058541039 +0000 UTC
Policy Bundle:
Check Bundle:
Digest: sha256:19a017cdc798631ad42f6f4dce823d77b2989128f0e1a7f9bc83ae3c59024edd
DownloadedAt: 2023-03-02 01:06:08.191725 +0000 UTC
`,
@@ -81,11 +81,11 @@ Java DB:
UpdatedAt: 2023-03-14 00:47:02.774253754 +0000 UTC
NextUpdate: 2023-03-17 00:47:02.774253254 +0000 UTC
DownloadedAt: 2023-03-14 03:04:55.058541039 +0000 UTC
Policy Bundle:
Check Bundle:
Digest: sha256:19a017cdc798631ad42f6f4dce823d77b2989128f0e1a7f9bc83ae3c59024edd
DownloadedAt: 2023-03-02 01:06:08.191725 +0000 UTC
`
jsonOutput := `{"Version":"dev","VulnerabilityDB":{"Version":2,"NextUpdate":"2022-03-02T12:07:07.99504023Z","UpdatedAt":"2022-03-02T06:07:07.99504083Z","DownloadedAt":"2022-03-02T10:03:38.383312Z"},"JavaDB":{"Version":1,"NextUpdate":"2023-03-17T00:47:02.774253254Z","UpdatedAt":"2023-03-14T00:47:02.774253754Z","DownloadedAt":"2023-03-14T03:04:55.058541039Z"},"PolicyBundle":{"Digest":"sha256:19a017cdc798631ad42f6f4dce823d77b2989128f0e1a7f9bc83ae3c59024edd","DownloadedAt":"2023-03-02T01:06:08.191725Z"}}
jsonOutput := `{"Version":"dev","VulnerabilityDB":{"Version":2,"NextUpdate":"2022-03-02T12:07:07.99504023Z","UpdatedAt":"2022-03-02T06:07:07.99504083Z","DownloadedAt":"2022-03-02T10:03:38.383312Z"},"JavaDB":{"Version":1,"NextUpdate":"2023-03-17T00:47:02.774253254Z","UpdatedAt":"2023-03-14T00:47:02.774253754Z","DownloadedAt":"2023-03-14T03:04:55.058541039Z"},"CheckBundle":{"Digest":"sha256:19a017cdc798631ad42f6f4dce823d77b2989128f0e1a7f9bc83ae3c59024edd","DownloadedAt":"2023-03-02T01:06:08.191725Z"}}
`
tests := []struct {
name string