Skip to content

Commit bf27081

Browse files
authored
Fix #1240. (#1241)
1 parent e7702a4 commit bf27081

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ NOTE: These events will not be fired if the `spring.cloud.service-registry.auto-
126126
[[service-registry-actuator-endpoint]]
127127
=== Service Registry Actuator Endpoint
128128

129-
Spring Cloud Commons provides a `/service-registry` actuator endpoint.
129+
Spring Cloud Commons provides a `/serviceregistry` actuator endpoint.
130130
This endpoint relies on a `Registration` bean in the Spring Application Context.
131-
Calling `/service-registry` with GET returns the status of the `Registration`.
131+
Calling `/serviceregistry` with GET returns the status of the `Registration`.
132132
Using POST to the same endpoint with a JSON body changes the status of the current `Registration` to the new value.
133133
The JSON body has to include the `status` field with the preferred value.
134134
Please see the documentation of the `ServiceRegistry` implementation you use for the allowed values when updating the status and the values returned for the status.

spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/endpoint/ServiceRegistryEndpointNoRegistrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public class ServiceRegistryEndpointNoRegistrationTests {
4848

4949
@Test
5050
public void testGet() throws Exception {
51-
this.mvc.perform(get("/service-registry/instance-status")).andExpect(status().isNotFound());
51+
this.mvc.perform(get("/serviceregistry/instance-status")).andExpect(status().isNotFound());
5252
}
5353

5454
@Test
5555
public void testPost() throws Exception {
56-
this.mvc.perform(post("/service-registry/instance-status").content("newstatus"))
56+
this.mvc.perform(post("/serviceregistry/instance-status").content("newstatus"))
5757
.andExpect(status().isNotFound());
5858
}
5959

0 commit comments

Comments
 (0)