forked from Checkmarx/kics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Checkmarx#4575 from Checkmarx/tests/e2e-sonarqube-…
…template feat(e2e): add tests to validate sonaqube reports
- Loading branch information
Showing
5 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"issues" | ||
], | ||
"properties": { | ||
"issues": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"required": [ | ||
"engineId", | ||
"ruleId", | ||
"severity", | ||
"type", | ||
"primaryLocation" | ||
], | ||
"properties": { | ||
"engineId": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"ruleId": { | ||
"type": "string", | ||
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4{1}[a-f0-9]{3}-[89ab]{1}[a-f0-9]{3}-[a-f0-9]{12}$" | ||
}, | ||
"severity": { | ||
"type": "string", | ||
"enum": [ | ||
"INFO", | ||
"MINOR", | ||
"MAJOR", | ||
"CRITICAL" | ||
] | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"VULNERABILITY", | ||
"CODE_SMELL" | ||
] | ||
}, | ||
"primaryLocation": { | ||
"$ref" : "sonarqubeLocations.json" | ||
}, | ||
"secondaryLocations": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "sonarqubeLocations.json" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"message", | ||
"filePath", | ||
"textRange" | ||
], | ||
"properties": { | ||
"message": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"filePath": { | ||
"type": "string", | ||
"pattern": "^([\\w\\-. ]+(\\\\|\\/))*([\\w\\-. ]+(\\\\|\\/).(.)*)$" | ||
}, | ||
"textRange": { | ||
"type": "object", | ||
"required": [ | ||
"startLine" | ||
], | ||
"properties": { | ||
"startLine": { | ||
"type": "integer", | ||
"minimum": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters