Fix monitoring sample tests

- Caused by change of default boot actuator path.
- Fixes #350
This commit is contained in:
Janne Valkealahti
2017-04-19 19:18:40 +01:00
parent 168f6476f9
commit 15c537a1c9
2 changed files with 4 additions and 4 deletions

View File

@@ -1522,7 +1522,7 @@ Metrics can be viewed from Boot.
[source,json]
----
# curl http://localhost:8080/metrics
# curl http://localhost:8080/application/metrics
{
"gauge.ssm.transition.INITIAL_S1.duration":0.0,
@@ -1544,7 +1544,7 @@ Tracing can be viewed from Boot.
[source,json]
----
# curl http://localhost:8080/trace
# curl http://localhost:8080/application/trace
[{
"timestamp":1478419121956,

View File

@@ -79,7 +79,7 @@ public class MonitoringTests {
perform(get("/state").param("events", "E1")).
andExpect(status().isOk());
mvc.
perform(get("/metrics")).
perform(get("/application/metrics")).
andExpect(jsonPath("$.['counter.ssm.transition.INITIAL_S1.transit']", is(1)));
}
@@ -89,7 +89,7 @@ public class MonitoringTests {
perform(get("/state")).
andExpect(status().isOk());
mvc.
perform(get("/trace")).
perform(get("/application/trace")).
andExpect(jsonPath("$.*.info.transition", containsInAnyOrder("INITIAL_S1")));
}