Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
be6d1d41
Commit
be6d1d41
authored
Jul 15, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3.x'
parents
918201c2
c6e45d74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
pom.xml
pom.xml
+1
-1
AdminClientProperties.java
.../codecentric/boot/admin/config/AdminClientProperties.java
+1
-3
AdminClientPropertiesTest.java
...ecentric/boot/admin/config/AdminClientPropertiesTest.java
+16
-0
No files found.
pom.xml
View file @
be6d1d41
...
...
@@ -18,7 +18,7 @@
<java.version>
1.7
</java.version>
<main.basedir>
${basedir}
</main.basedir>
<spring-boot.version>
1.4.0.RC1
</spring-boot.version>
<spring-cloud.version>
Brixton.SR
2
</spring-cloud.version>
<spring-cloud.version>
Brixton.SR
3
</spring-cloud.version>
<build-plugin.jacoco.version>
0.7.7.201606060606
</build-plugin.jacoco.version>
<build-plugin.coveralls.version>
4.2.0
</build-plugin.coveralls.version>
<build-plugin.gpg.version>
1.6
</build-plugin.gpg.version>
...
...
spring-boot-admin-starter-client/src/main/java/de/codecentric/boot/admin/config/AdminClientProperties.java
View file @
be6d1d41
...
...
@@ -104,9 +104,7 @@ public class AdminClientProperties {
server
.
getContextPath
()),
management
.
getContextPath
());
}
return
append
(
append
(
createLocalUri
(
getHostAddress
().
getCanonicalHostName
(),
managementPort
),
server
.
getContextPath
()),
return
append
(
createLocalUri
(
getHostAddress
().
getCanonicalHostName
(),
managementPort
),
management
.
getContextPath
());
}
...
...
spring-boot-admin-starter-client/src/test/java/de/codecentric/boot/admin/config/AdminClientPropertiesTest.java
View file @
be6d1d41
...
...
@@ -61,6 +61,22 @@ public class AdminClientPropertiesTest {
}
@Test
public
void
test_contextPatht_mgmtPortPath
()
{
load
(
"server.context-path=app"
,
"management.context-path=/admin"
,
"local.server.port=8080"
,
"local.management.port=8081"
);
AdminClientProperties
clientProperties
=
new
AdminClientProperties
();
context
.
getAutowireCapableBeanFactory
().
autowireBean
(
clientProperties
);
publishApplicationReadyEvent
(
clientProperties
);
assertThat
(
clientProperties
.
getManagementUrl
(),
is
(
"http://"
+
getHostname
()
+
":8081/admin"
));
assertThat
(
clientProperties
.
getHealthUrl
(),
is
(
"http://"
+
getHostname
()
+
":8081/admin/health"
));
assertThat
(
clientProperties
.
getServiceUrl
(),
is
(
"http://"
+
getHostname
()
+
":8080/app"
));
}
@Test
public
void
test_contextPath
()
{
load
(
"server.context-path=app"
,
"local.server.port=80"
);
AdminClientProperties
clientProperties
=
new
AdminClientProperties
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment