Skip to content

Commit 472fa2b

Browse files
author
Domonkos Gulyas
committed
Fix MetricsServiceIT REST calls
1 parent 2ac8726 commit 472fa2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/phoebus/channelfinder/MetricsServiceIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ public void cleanup() {
8989
private void getAndExpectMetric(String paramValue, String endpoint, int expectedValue)
9090
throws Exception {
9191
mockMvc
92-
.perform(get(METRICS_ENDPOINT + endpoint).param(METRICS_PARAM_KEY, paramValue))
92+
.perform(get(METRICS_ENDPOINT + "/" + endpoint).param(METRICS_PARAM_KEY, paramValue))
9393
.andExpect(jsonPath("$.measurements[0].value").value(expectedValue));
9494
}
9595

9696
private void getAndExpectMetricParent(String endpoint, int expectedValue) throws Exception {
9797
mockMvc
98-
.perform(get(METRICS_ENDPOINT + endpoint))
98+
.perform(get(METRICS_ENDPOINT + "/" + endpoint))
9999
.andExpect(jsonPath("$.measurements[0].value").value(expectedValue));
100100
}
101101

0 commit comments

Comments
 (0)