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:
反编译工作区
2026-05-03 14:44:53 +08:00
parent 5513b635e5
commit ffbc8614b4
3 changed files with 45 additions and 1 deletions
@@ -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})