Skip to content

Commit

Permalink
Merge pull request #172 from Checkmarx/send-agent-to-results-cmd
Browse files Browse the repository at this point in the history
AST-37667 sends the agent to the results command
  • Loading branch information
tamarleviCm authored May 19, 2024
2 parents 3025878 + 8fddc81 commit 587908d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ResultTest : BaseTest
[Fact]
public void TestResultsHTML()
{
List<Scan> scanList = cxWrapper.GetScans();
List<Scan> scanList = cxWrapper.GetScans("statuses=Completed");
Assert.True(scanList.Any());

string scanId = scanList[0].ID;
Expand All @@ -25,7 +25,7 @@ public void TestResultsHTML()
[Fact]
public void TestResultsJSON()
{
List<Scan> scanList = cxWrapper.GetScans();
List<Scan> scanList = cxWrapper.GetScans("statuses=Completed");
Assert.True(scanList.Any());

string scanId = scanList[0].ID;
Expand All @@ -37,7 +37,7 @@ public void TestResultsJSON()
[Fact]
public void TestResultsSummaryJSON()
{
List<Scan> scanList = cxWrapper.GetScans();
List<Scan> scanList = cxWrapper.GetScans("statuses=Completed");
Assert.True(scanList.Any());

string scanId = scanList[0].ID;
Expand Down
13 changes: 5 additions & 8 deletions ast-visual-studio-extension/CxWrapper/CxWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,11 @@ public string GetResults(string scanId, ReportFormat reportFormat)
{
CxConstants.CLI_RESULTS_CMD,
CxConstants.CLI_SHOW_CMD,
CxConstants.FLAG_SCAN_ID,
scanId.ToString(),
CxConstants.FLAG_REPORT_FORMAT,
reportFormat.ToString(),
CxConstants.FLAG_OUTPUT_NAME,
fileName,
CxConstants.FLAG_OUTPUT_PATH,
tempDir
CxConstants.FLAG_SCAN_ID, scanId.ToString(),
CxConstants.FLAG_REPORT_FORMAT, reportFormat.ToString(),
CxConstants.FLAG_OUTPUT_NAME, fileName,
CxConstants.FLAG_OUTPUT_PATH, tempDir,
CxConstants.FLAG_AGENT, CxCLI.CxConstants.EXTENSION_AGENT,
};

string extension = string.Empty;
Expand Down
2 changes: 1 addition & 1 deletion checkmarx-ast-cli.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.64
2.1.1

0 comments on commit 587908d

Please sign in to comment.