Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix Endpoint ID 'service-registry' contains invalid characters, pleas…
…e migrate to a valid format
  • Loading branch information
nkonev committed Mar 6, 2020
commit 1fdb495229a6685a0eee0ba35b4d44eaf92c4e94
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @author Spencer Gibb
*/
@SuppressWarnings("unchecked")
@Endpoint(id = "service-registry")
@Endpoint(id = "serviceregistry")
public class ServiceRegistryEndpoint {

private final ServiceRegistry serviceRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ public class ServiceRegistryEndpointTests {

@Test
public void testGet() throws Exception {
this.mvc.perform(get(BASE_PATH + "/service-registry")).andExpect(status().isOk())
this.mvc.perform(get(BASE_PATH + "/serviceregistry")).andExpect(status().isOk())
.andExpect(content().string(containsString(MYSTATUS)));
}

@Test
public void testPost() throws Exception {
Map<String, String> status = Collections.singletonMap("status", UPDATED_STATUS);
this.mvc.perform(post(BASE_PATH + "/service-registry")
this.mvc.perform(post(BASE_PATH + "/serviceregistry")
.content(new ObjectMapper().writeValueAsString(status))
.contentType(MediaType.APPLICATION_JSON)).andExpect(status().isOk());
then(this.serviceRegistry.getUpdatedStatus().get()).isEqualTo(UPDATED_STATUS);
Expand Down