mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
fix(test): hardcode PersonFeignClient url to local stub for test env, add Ribbon comp-org route
- PersonFeignClient: add url=http://127.0.0.1:33011 to bypass Ribbon/Consul discovery - application.properties: add ninca-common-component-organization.ribbon.listOfServers - Add stub-person-service.py for simulating component-organization person/detail Returns PersonResult with floorList and organizationIds for policy testing NOTE: PersonFeignClient url change is test-only, revert before production Former-commit-id: ff9a9ed68ec81fc2de68cc74cd22edcf38b510cb
This commit is contained in:
+2
-1
@@ -16,7 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@FeignClient(name = "${feign.component-organization.name:ninca-common-component-organization}",
|
||||
@FeignClient(name = "ninca-common-component-organization",
|
||||
url = "http://127.0.0.1:33011",
|
||||
path = "/component/person", fallback = PersonFeignClientFallback.class)
|
||||
public interface PersonFeignClient {
|
||||
@RequestMapping(value = {"/add"}, method = {RequestMethod.POST})
|
||||
|
||||
Reference in New Issue
Block a user