Skip to content

Commit

Permalink
1.0.1-RELEASE (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-eggers committed Mar 10, 2018
1 parent 2286091 commit cda34da
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SpringBoot Jenkins Actuator
<dependency>
<groupId>com.itelg.spring</groupId>
<artifactId>spring-jenkins-actuator</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.1-RELEASE</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>spring-jenkins-actuator</name>
<description>SpringBoot Jenkins Actuator</description>
<url>https://github.com/julian-eggers/spring-jenkins-actuator</url>
<version>1.0.0-RELEASE</version>
<version>1.0.1-RELEASE</version>

<properties>
<!-- System -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,19 @@ private JenkinsServer createJenkinsServer() throws URISyntaxException

return new JenkinsServer(new URI(url));
}

public String getUrl()
{
return url;
}

public String getUsername()
{
return username;
}

public String getPassword()
{
return password;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ public void testWithDown()
assertEquals(Status.DOWN, health.getStatus());
assertNull(health.getDetails().get("version"));
}

@Test
public void testGetters()
{
JenkinsHealthIndicator healthIndicator = new JenkinsHealthIndicator("http://192.168.2.110:8080/", "admin", "d4920417fc6842039222df91b8c68be5");
assertEquals("http://192.168.2.110:8080/", healthIndicator.getUrl());
assertEquals("admin", healthIndicator.getUsername());
assertEquals("d4920417fc6842039222df91b8c68be5", healthIndicator.getPassword());
}
}

0 comments on commit cda34da

Please sign in to comment.