Merge branch '2.0.x'

This commit is contained in:
Phillip Webb
2018-05-25 23:50:39 -07:00
33 changed files with 173 additions and 1147 deletions

View File

@@ -89,8 +89,8 @@ public class ManagementPortAndPathSampleActuatorApplicationTests {
String unknownProperty = "test-does-not-exist";
assertThat(this.environment.containsProperty(unknownProperty)).isFalse();
ResponseEntity<String> entity = new TestRestTemplate()
.withBasicAuth("user", getPassword()).getForEntity(
"http://localhost:" + this.managementPort + "/admin/env/" + unknownProperty,
.withBasicAuth("user", getPassword()).getForEntity("http://localhost:"
+ this.managementPort + "/admin/env/" + unknownProperty,
String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
}