fix tests to use location instead of file.Reference

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-11-17 12:37:12 -05:00
parent b694dacb21
commit aa0d444fd4
40 changed files with 327 additions and 382 deletions
+62 -10
View File
@@ -10,6 +10,9 @@
},
"type": "array"
},
"language": {
"type": "string"
},
"licenses": {
"anyOf": [
{
@@ -24,13 +27,16 @@
]
},
"locations": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"anyOf": [
{
"type": "null"
},
{
"items": {
"properties": {
"layerID": {
"type": "string"
},
"layerIndex": {
"type": "integer"
},
@@ -39,14 +45,15 @@
}
},
"required": [
"layerID",
"layerIndex",
"path"
],
"type": "object"
}
]
},
"type": "array"
},
"type": "array"
}
]
},
"metadata": {
"properties": {
@@ -315,6 +322,9 @@
},
"type": "object"
},
"metadataType": {
"type": "string"
},
"name": {
"type": "string"
},
@@ -327,8 +337,10 @@
},
"required": [
"foundBy",
"language",
"licenses",
"locations",
"metadataType",
"name",
"type",
"version"
@@ -337,6 +349,44 @@
},
"type": "array"
},
"descriptor": {
"properties": {
"name": {
"type": "string"
},
"reportTimestamp": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"name",
"reportTimestamp",
"version"
],
"type": "object"
},
"distro": {
"properties": {
"idLike": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"idLike",
"name",
"version"
],
"type": "object"
},
"source": {
"properties": {
"target": {
@@ -408,6 +458,8 @@
},
"required": [
"artifacts",
"descriptor",
"distro",
"source"
],
"type": "object"