Commit c582fa20 authored by Dave Syer's avatar Dave Syer Committed by Phillip Webb

/info endpoint should be open by default

[#53029715] [bs-203] ManagementServerConfiguration security
parent 3c44fda7
...@@ -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", true); super("/info", false);
Assert.notNull(info, "Info must not be null"); Assert.notNull(info, "Info must not be null");
this.info = info; this.info = info;
} }
......
...@@ -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", true, "endpoints.info"); super(Config.class, InfoEndpoint.class, "/info", false, "endpoints.info");
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment