Fix monitoring sample tests
- Caused by change of default boot actuator path. - Fixes #350
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user