Skip to content

Commit

Permalink
Add API token support
Browse files Browse the repository at this point in the history
  • Loading branch information
Glib Briia committed Nov 3, 2024
1 parent 8b952c1 commit 18c074c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.assertthat.plugins</groupId>
<artifactId>assertthat-bdd-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>1.7.2</version>
<version>1.7.3</version>
<name>assertthat-bdd-maven-plugin</name>
<description>AssertThat BDD Jira maven plugin</description>
<url>http://www.assertthat.com</url>
Expand Down Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>com.assertthat.plugins</groupId>
<artifactId>assertthat-bdd-standalone</artifactId>
<version>1.9.10</version>
<version>1.9.11</version>
</dependency>
</dependencies>
<build>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/assertthat/FeaturesMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class FeaturesMojo extends AbstractMojo {
@Parameter(property = "secretKey")
private String secretKey;

@Parameter(property = "token")
private String token;

@Parameter(property = "projectId", required = true)
private String projectId;
@Parameter(property = "tags")
Expand Down Expand Up @@ -82,6 +85,7 @@ public void execute()
ArgumentsFeatures arguments = new ArgumentsFeatures(
accessKey,
secretKey,
token,
projectId,
outputFolder,
proxyURI,
Expand Down Expand Up @@ -110,6 +114,7 @@ public void execute()
APIUtil apiUtil = new APIUtil(arguments.getProjectId(),
arguments.getAccessKey(),
arguments.getSecretKey(),
arguments.getToken(),
arguments.getProxyURI(),
arguments.getProxyUsername(),
arguments.getProxyPassword(),
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/assertthat/ReportMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public class ReportMojo extends AbstractMojo {
private String accessKey;
@Parameter(property = "secretKey")
private String secretKey;
@Parameter(property = "token")
private String token;
@Parameter(property = "projectId", required = true)
private String projectId;
@Parameter(property = "runName")
Expand Down Expand Up @@ -85,6 +87,7 @@ public void execute()
ArgumentsReport arguments = new ArgumentsReport(
accessKey,
secretKey,
token,
projectId,
runName,
jsonReportFolder,
Expand Down Expand Up @@ -113,6 +116,7 @@ public void execute()
APIUtil apiUtil = new APIUtil(arguments.getProjectId(),
arguments.getAccessKey(),
arguments.getSecretKey(),
arguments.getToken(),
arguments.getProxyURI(),
arguments.getProxyUsername(),
arguments.getProxyPassword(),
Expand Down

0 comments on commit 18c074c

Please sign in to comment.