Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
[#79] Renaming fetchCollaboratorsNames() -> fetchMyDependencies(), fe…
Browse files Browse the repository at this point in the history
…tchAllServices() -> fetchAllDependencies()
  • Loading branch information
nurkiewicz committed Dec 22, 2014
1 parent 909cf9c commit b26ad3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CollaboratorsConnectivityController {
*/
@RequestMapping
Map getCollaboratorsConnectivityInfo() {
Set<ServicePath> myCollaborators = serviceResolver.fetchCollaboratorsNames()
Set<ServicePath> myCollaborators = serviceResolver.fetchMyDependencies()
return myCollaborators.collectEntries { ServicePath service ->
return [service.path, statusOfAllCollaboratorInstances(service)]
}
Expand All @@ -55,7 +55,7 @@ class CollaboratorsConnectivityController {

@RequestMapping('/all')
Map getAllCollaboratorsConnectivityInfo() {
final Set<ServicePath> allServices = serviceResolver.fetchAllServices()
final Set<ServicePath> allServices = serviceResolver.fetchAllDependencies()
allServices.collectEntries { ServicePath service ->
return [service.path, collaboratorsStatusOfAllInstances(service)]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class CollaboratorsConnectivityControllerSpec extends Specification {
}

def myCollaboratorsAre(String... strings) {
serviceResolverMock.fetchCollaboratorsNames() >> strings.collect { new ServicePath(it) }.toList().toSet()
serviceResolverMock.fetchMyDependencies() >> strings.collect { new ServicePath(it) }.toList().toSet()
}

private void instancesOfMicroservices(Map<String, List<String>> instances) {
serviceResolverMock.fetchAllServices() >> instances.keySet().collect { new ServicePath(it) }.toSet()
serviceResolverMock.fetchAllDependencies() >> instances.keySet().collect { new ServicePath(it) }.toSet()
instances.each { path, urls ->
final ServicePath wrappedPath = new ServicePath(path)
final ServiceAlias alias = new ServiceAlias(StringUtils.substringAfterLast(path, '/'))
Expand Down

0 comments on commit b26ad3d

Please sign in to comment.