Skip to content

Commit a40e7de

Browse files
add branch parameter (#7)
* add branch parameter
1 parent 1ad5dd8 commit a40e7de

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.checkmarx.ast</groupId>
66
<artifactId>ast-cli-java-wrapper</artifactId>
7-
<version>1.0.5</version>
7+
<version>1.0.6</version>
88
<packaging>jar</packaging>
99

1010
<dependencies>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.checkmarx.ast;
22

33
public enum CxParamType {
4-
S, V, G, PROJECT_NAME, SCAN_TYPES, SAST_PRESET_NAME, FILTER, DIRECTORY, ADDITIONAL_PARAMETERS, AGENT, SOURCES
4+
S, V, G, PROJECT_NAME, SCAN_TYPES, SAST_PRESET_NAME, FILTER, DIRECTORY, ADDITIONAL_PARAMETERS, AGENT, SOURCES, BRANCH
55
}

src/main/java/com/checkmarx/ast/CxScan.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
@JsonDeserialize()
2121
@JsonInclude(JsonInclude.Include.NON_NULL)
2222
@JsonIgnoreProperties(ignoreUnknown = true)
23-
2423
public class CxScan {
2524

2625
private String ID;

src/test/java/com/checkmarx/ast/CxAuthTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ public void cxAstScanList() throws IOException, InterruptedException {
7676
assertTrue(scanList.size() > 0);
7777
}
7878

79+
@Test
80+
public void cxScanCreationWithBranchName() throws InterruptedException, IOException {
81+
Map<CxParamType, String> params = createParams();
82+
params.put(CxParamType.BRANCH, "test");
83+
84+
CxScan scanResult = auth.cxScanCreate(params);
85+
assertTrue(auth.cxScanShow(scanResult.getID()).getStatus().equalsIgnoreCase(COMPLETED));
86+
}
87+
7988
@Test
8089
public void cxScanCreationWrongPreset() throws InterruptedException, IOException {
8190
Map<CxParamType, String> params = createParams();

0 commit comments

Comments
 (0)