SUPPORT-8696: Fix
This commit is contained in:
parent
9d8bd3ef63
commit
6639021e39
2 changed files with 4 additions and 5 deletions
|
|
@ -41,15 +41,13 @@ import static ru.micord.ervu.account_applications.db_beans.public_.tables.Recrui
|
|||
public class ErvuDirectoriesService {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(
|
||||
MethodHandles.lookup().lookupClass());
|
||||
@Value("${ervu.url}")
|
||||
private String ervuUrl;
|
||||
@Value("${idm.url}")
|
||||
private String idmUrl;
|
||||
@Value("${ervu.collection:domain, role}")
|
||||
private String ervuCollection;
|
||||
@Autowired
|
||||
private RestTemplate restTemplate;
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
@Autowired
|
||||
private ErvuDirectoriesDaoService ervuDirectoriesDaoService;
|
||||
|
||||
|
||||
|
|
@ -61,7 +59,7 @@ public class ErvuDirectoriesService {
|
|||
try {
|
||||
String[] ervuCollectionArray = ervuCollection.split(",");
|
||||
Arrays.stream(ervuCollectionArray).forEach(ervuCollection -> {
|
||||
String targetUrl = ervuUrl + "/service/idm/reconcile/"+ ervuCollection + "/to/kafka/v1";
|
||||
String targetUrl = idmUrl + "/reconcile/"+ ervuCollection + "/to/kafka/v1";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_JSON);
|
||||
String emptyJson = "{}";
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ KAFKA_PASS=Blfi9d2OFG
|
|||
KAFKA_CONSUMER_GROUP_ID=1
|
||||
KAFKA_DOMAIN_GROUP_ID=ervu-account-applications-backend-domain
|
||||
KAFKA_ROLE_GROUP_ID=ervu-account-applications-backend-role
|
||||
IDM_URL=http://idm
|
||||
|
||||
ERVU_URL=https://ervu-dev.pgs.rtlabs.ru
|
||||
ERVU_HTTP_TIMEOUT=30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue