Skip to content

Commit 08011c1

Browse files
Merge pull request #102 from cadonuno/adding-support-for-criticalities-VERY_HIGH-and-VERY_LOW
Adding support for criticalities very high and very low
2 parents 3cb1a10 + 5962788 commit 08011c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

veracode_api_py/applications.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def _create_or_update(self,method,app_name: str, business_criticality, descripti
6767

6868
if business_criticality not in Constants().BUSINESS_CRITICALITY:
6969
raise ValueError("{} is not in the list of valid business criticalities ({})".format(business_criticality,Constants().BUSINESS_CRITICALITY))
70+
business_criticality = business_criticality.replace(" ", "_")
7071

7172
app_def = {'name':app_name, 'business_criticality':business_criticality}
7273

veracode_api_py/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Constants():
4242

4343
DEV_STAGE = [ 'DEVELOPMENT', 'TESTING', 'RELEASE']
4444

45-
BUSINESS_CRITICALITY = [ 'VERY HIGH', 'HIGH', 'MEDIUM', 'LOW', 'VERY LOW']
45+
BUSINESS_CRITICALITY = [ 'VERY HIGH', 'HIGH', 'MEDIUM', 'LOW', 'VERY LOW', 'VERY_HIGH', 'VERY_LOW']
4646

4747
DAST_TARGET_TYPE = [ 'WEB_APP', 'API']
4848

@@ -54,4 +54,4 @@ class Constants():
5454

5555
DAST_SCANNERS = [ 'fingerprinting', 'ssl', 'http_header', 'portscan', 'fuzzer', 'sql_injection',
5656
'xss', 'file_inclusion', 'deserialization', 'xxe', 'command_injection',
57-
'csrf', 'ldap_injection']
57+
'csrf', 'ldap_injection']

0 commit comments

Comments
 (0)