Skip to content

Commit 15c537a

Browse files
committed
Fix monitoring sample tests
- Caused by change of default boot actuator path. - Fixes #350
1 parent 168f647 commit 15c537a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/reference/asciidoc/sm-examples.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ Metrics can be viewed from Boot.
15221522

15231523
[source,json]
15241524
----
1525-
# curl http://localhost:8080/metrics
1525+
# curl http://localhost:8080/application/metrics
15261526
15271527
{
15281528
"gauge.ssm.transition.INITIAL_S1.duration":0.0,
@@ -1544,7 +1544,7 @@ Tracing can be viewed from Boot.
15441544

15451545
[source,json]
15461546
----
1547-
# curl http://localhost:8080/trace
1547+
# curl http://localhost:8080/application/trace
15481548
15491549
[{
15501550
"timestamp":1478419121956,

spring-statemachine-samples/monitoring/src/test/java/demo/monitoring/MonitoringTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void testMetrics() throws Exception {
7979
perform(get("/state").param("events", "E1")).
8080
andExpect(status().isOk());
8181
mvc.
82-
perform(get("/metrics")).
82+
perform(get("/application/metrics")).
8383
andExpect(jsonPath("$.['counter.ssm.transition.INITIAL_S1.transit']", is(1)));
8484
}
8585

@@ -89,7 +89,7 @@ public void testTrace() throws Exception {
8989
perform(get("/state")).
9090
andExpect(status().isOk());
9191
mvc.
92-
perform(get("/trace")).
92+
perform(get("/application/trace")).
9393
andExpect(jsonPath("$.*.info.transition", containsInAnyOrder("INITIAL_S1")));
9494
}
9595

0 commit comments

Comments
 (0)