1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-04-19 17:26:51 +00:00

chore: gPas health check, fetch metadata instead of send invalid gPas request (#73)

This commit is contained in:
jlidke 2024-11-01 13:54:40 +01:00 committed by GitHub
parent eb49ba611b
commit d258d9081b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,11 +162,8 @@ class GPasConnectionCheckService(
fun check() {
result = try {
val uri = UriComponentsBuilder.fromUriString(
gPasConfigProperties.uri?.replace("/\$pseudonymizeAllowCreate", "/\$pseudonymize").toString()
)
.queryParam("target", gPasConfigProperties.target)
.queryParam("original", "???")
.build().toUri()
gPasConfigProperties.uri?.replace("/\$pseudonymizeAllowCreate", "/metadata").toString()
).build().toUri()
val headers = HttpHeaders()
headers.contentType = MediaType.APPLICATION_JSON