/info endpoint should be open by default

[#53029715] [bs-203] ManagementServerConfiguration security
This commit is contained in:
Dave Syer 2013-08-22 09:54:51 +01:00 committed by Phillip Webb
parent 3c44fda782
commit c582fa2067
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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