update the json schema and tests with file contents section

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2021-04-12 17:33:20 -04:00
parent c1551a03c5
commit d451a5ad30
5 changed files with 90 additions and 938 deletions
@@ -125,6 +125,9 @@ func TestJSONPresenter(t *testing.T) {
},
},
},
FileContents: map[source.Location]string{
source.NewLocation("/a/place/a"): "the-contents",
},
Distro: &distro.Distro{
Type: distro.RedHat,
RawVersion: "7",
@@ -1,4 +1,12 @@
{
"fileContents": [
{
"location": {
"path": "/a/place/a"
},
"contents": "the-contents"
}
],
"fileMetadata": [
{
"location": {
@@ -198,6 +206,14 @@
"scope": ""
}
},
"contents": {
"cataloger": {
"enabled": false,
"scope": ""
},
"skip-files-above-size": 0,
"globs": null
},
"secrets": {
"cataloger": {
"enabled": false,