Modified excluded engine type for agent Visual Studio (AST-110820) #1295
+49
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By submitting this pull request, you agree to the terms within the Checkmarx Code of Conduct. Please review the contributing guidelines for guidance on creating high-quality pull requests.
Description
Updated the list of excluded engine types for the Visual Studio agent.
Added\ Updated unit tests related to this.
Type of Change
Related Issues
Fixed below issues -
https://checkmarx.atlassian.net/browse/AST-111544 - CLI | Remove filterScsResultsByAgent in CLI and update unit\integration tests accordingly
https://checkmarx.atlassian.net/browse/AST-113072 - CLI | Create scan is ot working for scs scan in resubmit case
Checklist
Screenshots (if applicable)
Add screenshots to help explain your changes.
Test Cases
Case 1:
cx scan create --scan-info-format json -s C:\Newfolder\JavaVulnerableLab --project-name Project1 --branch master --agent "Visual Studio" --async --sast-incremental --resubmit
Case 2:
cx scan create --scan-info-format json -s C:\Newfolder\JavaVulnerableLab --project-name Project2 --branch master --agent "Visual Studio" --async --sast-incremental --resubmit
Case 3:
cx results show --scan-id 73a67f6e-1470-4829-981d-02a8ff9e5097 --report-format json --output-name 8c118ee6-a880-4817-a0e1-51367eb9ce10 --output-path C:\Users\RahulP\AppData\Local\Temp1 --agent "Visual Studio"
Case 4:
cx results show --scan-id 73a67f6e-1470-4829-981d-02a8ff9e5097 --report-format json --output-name 8c118ee6-a880-4817-a0e1-51367eb9ce10 --output-path C:\Users\RahulP\AppData\Local\Temp1 --agent "Visual Studio"