From 51ac3f5af56f50cce0ce41407ce15de1cf770df3 Mon Sep 17 00:00:00 2001 From: Kirill Pavlov <kirikpavlov@gmail.com> Date: Fri, 22 Dec 2017 12:46:23 +0300 Subject: [PATCH] Add minimum_severity field --- defectdojo_api/defectdojo.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/defectdojo_api/defectdojo.py b/defectdojo_api/defectdojo.py index a15bead..3ab1060 100644 --- a/defectdojo_api/defectdojo.py +++ b/defectdojo_api/defectdojo.py @@ -640,7 +640,7 @@ class DefectDojoAPI(object): ##### Upload API ##### - def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None): + def upload_scan(self, engagement_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"): """Uploads and processes a scan file. :param application_id: Application identifier. @@ -660,7 +660,8 @@ class DefectDojoAPI(object): 'active': ('', active), 'scan_date': ('', scan_date), 'tags': ('', tags), - 'build_id': ('', build) + 'build_id': ('', build), + 'minimum_severity': ('', minimum_severity) } return self._request( @@ -670,7 +671,7 @@ class DefectDojoAPI(object): ##### Re-upload API ##### - def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None): + def reupload_scan(self, test_id, scan_type, file, active, scan_date, tags=None, build=None, minimum_severity="Info"): """Re-uploads and processes a scan file. :param test_id: Test identifier. @@ -690,7 +691,8 @@ class DefectDojoAPI(object): 'active': ('', active), 'scan_date': ('', scan_date), 'tags': ('', tags), - 'build_id': ('', build) + 'build_id': ('', build), + 'minimum_severity': ('', minimum_severity) } return self._request( -- GitLab