File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ def test_aws_json_parser(self):
52
52
# Verify basic properties that should be present in any finding
53
53
self .assertIsNotNone (finding .title )
54
54
self .assertIsNotNone (finding .severity )
55
- self .assertIn ("aws" , [tag .lower () for tag in finding .unsaved_tags ])
56
55
57
56
# Verify cloud provider data
58
57
self .assertIn ("aws" , [tag .lower () for tag in finding .unsaved_tags ])
@@ -156,9 +155,12 @@ def test_gcp_json_parser(self):
156
155
# Verify cloud provider data
157
156
self .assertIn ("gcp" , [tag .lower () for tag in finding .unsaved_tags ])
158
157
159
- # Skip resource assertion as GCP JSON test data doesn't include resource information
160
- # Skip remediation check too since GCP JSON test data doesn't include remediation text
161
- # The GCP JSON test data contains empty remediation objects
158
+ # Verify remediation data exists in mitigation
159
+ self .assertIsNotNone (finding .mitigation , "Mitigation should not be None" )
160
+ self .assertTrue (
161
+ "Remediation:" in finding .mitigation ,
162
+ "No remediation information found in mitigation" ,
163
+ )
162
164
163
165
def test_kubernetes_csv_parser (self ):
164
166
"""Test parsing Kubernetes CSV report with findings"""
You can’t perform that action at this time.
0 commit comments