Commit 8f3c4808 authored by Dave Syer's avatar Dave Syer

/info endpoint should be open by default

[#53029715] [bs-203] ManagementServerConfiguration security
parent 6c9c4e0a
......@@ -39,7 +39,7 @@ public class InfoEndpoint extends AbstractEndpoint<Map<String, Object>> {
* @param info the info to expose
*/
public InfoEndpoint(Map<String, ? extends Object> info) {
super("/info", true);
super("/info", false);
Assert.notNull(info, "Info must not be null");
this.info = info;
}
......
......@@ -19,7 +19,6 @@ package org.springframework.boot.actuate.endpoint;
import java.util.Collections;
import org.junit.Test;
import org.springframework.boot.actuate.endpoint.InfoEndpoint;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
......@@ -31,11 +30,12 @@ import static org.junit.Assert.assertThat;
* Tests for {@link InfoEndpoint}.
*
* @author Phillip Webb
* @author Dave Syer
*/
public class InfoEndpointTests extends AbstractEndpointTests<InfoEndpoint> {
public InfoEndpointTests() {
super(Config.class, InfoEndpoint.class, "/info", true, "endpoints.info");
super(Config.class, InfoEndpoint.class, "/info", false, "endpoints.info");
}
@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