Commit ec7840e0 authored by Andy Wilkinson's avatar Andy Wilkinson

Align Actuator sample's tests with endpoint contextId changes

See gh-10980
parent 2723892b
......@@ -219,8 +219,9 @@ public class SampleActuatorApplicationTests {
.withBasicAuth("user", getPassword())
.getForEntity("/application/beans", Map.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(entity.getBody()).containsOnlyKeys("beans", "parent", "id");
assertThat(((String) entity.getBody().get("id"))).startsWith("application");
assertThat(entity.getBody()).containsOnlyKeys("beans", "parent", "contextId");
assertThat(((String) entity.getBody().get("contextId")))
.startsWith("application");
}
@SuppressWarnings("unchecked")
......
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