Skip to content

Commit bba0493

Browse files
Added missing services to tools in test cases
Signed-off-by: Steve Springett <[email protected]>
1 parent 6de0ebe commit bba0493

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

tools/src/test/resources/1.5/valid-metadata-tool-1.5.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
</hashes>
1414
</component>
1515
</components>
16+
<services>
17+
<service>
18+
<provider>
19+
<name>Acme Org</name>
20+
<url>https://example.com</url>
21+
</provider>
22+
<group>com.example</group>
23+
<name>Acme Signing Server</name>
24+
<description>Signs artifacts</description>
25+
<endpoints>
26+
<endpoint>https://example.com/sign</endpoint>
27+
<endpoint>https://example.com/verify</endpoint>
28+
<endpoint>https://example.com/tsa</endpoint>
29+
</endpoints>
30+
</service>
31+
</services>
1632
</tools>
1733
</metadata>
1834
<components />

tools/src/test/resources/1.5/valid-vulnerability-1.5.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@
9494
}
9595
]
9696
}
97+
],
98+
"services": [
99+
{
100+
"provider": {
101+
"name": "Acme Inc"
102+
},
103+
"name": "Acme BOM Analyzer",
104+
"endpoints": [
105+
"https://example.com/analyze"
106+
]
107+
}
97108
]
98109
},
99110
"analysis": {

tools/src/test/resources/1.5/valid-vulnerability-1.5.textproto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ vulnerabilities {
8888
]
8989
}
9090
]
91+
services: [
92+
{
93+
provider: {
94+
name: "Acme Inc"
95+
},
96+
name: "Acme BOM Analyzer",
97+
endpoints: [
98+
"https://example.com/analyze"
99+
]
100+
}
101+
]
91102
}
92103
analysis: {
93104
state: IMPACT_ANALYSIS_STATE_NOT_AFFECTED

tools/src/test/resources/1.5/valid-vulnerability-1.5.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@
9090
</hashes>
9191
</component>
9292
</components>
93+
<services>
94+
<service>
95+
<provider>
96+
<name>Acme Inf</name>
97+
</provider>
98+
<name>Acme BOM Analyzer</name>
99+
<endpoints>
100+
<endpoint>https://example.com/analyze</endpoint>
101+
</endpoints>
102+
</service>
103+
</services>
93104
</tools>
94105
<analysis>
95106
<state>not_affected</state>

0 commit comments

Comments
 (0)