Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
c582fa20
Commit
c582fa20
authored
Aug 22, 2013
by
Dave Syer
Committed by
Phillip Webb
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/info endpoint should be open by default
[#53029715] [bs-203] ManagementServerConfiguration security
parent
3c44fda7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
InfoEndpoint.java
...g/springframework/boot/actuate/endpoint/InfoEndpoint.java
+1
-1
InfoEndpointTests.java
...ingframework/boot/actuate/endpoint/InfoEndpointTests.java
+2
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InfoEndpoint.java
View file @
c582fa20
...
@@ -39,7 +39,7 @@ public class InfoEndpoint extends AbstractEndpoint<Map<String, Object>> {
...
@@ -39,7 +39,7 @@ public class InfoEndpoint extends AbstractEndpoint<Map<String, Object>> {
* @param info the info to expose
* @param info the info to expose
*/
*/
public
InfoEndpoint
(
Map
<
String
,
?
extends
Object
>
info
)
{
public
InfoEndpoint
(
Map
<
String
,
?
extends
Object
>
info
)
{
super
(
"/info"
,
tru
e
);
super
(
"/info"
,
fals
e
);
Assert
.
notNull
(
info
,
"Info must not be null"
);
Assert
.
notNull
(
info
,
"Info must not be null"
);
this
.
info
=
info
;
this
.
info
=
info
;
}
}
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/InfoEndpointTests.java
View file @
c582fa20
...
@@ -19,7 +19,6 @@ package org.springframework.boot.actuate.endpoint;
...
@@ -19,7 +19,6 @@ package org.springframework.boot.actuate.endpoint;
import
java.util.Collections
;
import
java.util.Collections
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.springframework.boot.actuate.endpoint.InfoEndpoint
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -31,11 +30,12 @@ import static org.junit.Assert.assertThat;
...
@@ -31,11 +30,12 @@ import static org.junit.Assert.assertThat;
* Tests for {@link InfoEndpoint}.
* Tests for {@link InfoEndpoint}.
*
*
* @author Phillip Webb
* @author Phillip Webb
* @author Dave Syer
*/
*/
public
class
InfoEndpointTests
extends
AbstractEndpointTests
<
InfoEndpoint
>
{
public
class
InfoEndpointTests
extends
AbstractEndpointTests
<
InfoEndpoint
>
{
public
InfoEndpointTests
()
{
public
InfoEndpointTests
()
{
super
(
Config
.
class
,
InfoEndpoint
.
class
,
"/info"
,
tru
e
,
"endpoints.info"
);
super
(
Config
.
class
,
InfoEndpoint
.
class
,
"/info"
,
fals
e
,
"endpoints.info"
);
}
}
@Test
@Test
...
...
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