-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathstatic_analysis.feature
More file actions
24 lines (21 loc) · 1.34 KB
/
static_analysis.feature
File metadata and controls
24 lines (21 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@endpoint(static-analysis) @endpoint(static-analysis-v2)
Feature: Static Analysis
API for static analysis
Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "StaticAnalysis" API
@generated @skip @team:DataDog/k9-vm-sca
Scenario: POST request to resolve vulnerable symbols returns "OK" response
Given operation "CreateSCAResolveVulnerableSymbols" enabled
And new "CreateSCAResolveVulnerableSymbols" request
And body with value {"data": {"attributes": {"purls": []}, "type": "resolve-vulnerable-symbols-request"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/k9-vm-sca
Scenario: Post dependencies for analysis returns "OK" response
Given operation "CreateSCAResult" enabled
And new "CreateSCAResult" request
And body with value {"data": {"attributes": {"commit": {}, "dependencies": [{"exclusions": [], "locations": [{"block": {"end": {}, "start": {}}, "name": {"end": {}, "start": {}}, "namespace": {"end": {}, "start": {}}, "version": {"end": {}, "start": {}}}], "reachable_symbol_properties": [{}]}], "files": [{}], "relations": [{"depends_on": []}], "repository": {}, "vulnerabilities": [{"affects": [{}]}]}, "type": "scarequests"}}
When the request is sent
Then the response status is 200 OK