Skip to content

Commit

Permalink
chore(owasp): [#530] replace "ID 3.0 Trace" with "ID 3.1 Trace" - adj…
Browse files Browse the repository at this point in the history
…ust EdcRegistration.registerEdcAsset
  • Loading branch information
dsmf committed Apr 18, 2024
1 parent 89a691b commit a8bad55
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ private void registerAsset(final String assetId, final String notificationType,
}
}
""".formatted(assetId, notificationType, essBaseUrl + path);
final var entity = restTemplate.exchange(edcProviderUrl + assetsPath, HttpMethod.POST,
toEntity(body), String.class);
final var entity = restTemplate.exchange(edcProviderUrl + assetsPath, HttpMethod.POST, toEntity(body),
String.class);

if (entity.getStatusCode().is2xxSuccessful()) {
log.info("Notification asset registered successfully.");
Expand Down Expand Up @@ -160,7 +160,7 @@ private void registerPolicy(final String policyId) {
"odrl:operator": {
"@id": "odrl:eq"
},
"odrl:rightOperand": "ID 3.0 Trace"
"odrl:rightOperand": "ID 3.1 Trace"
}
]
}
Expand All @@ -169,8 +169,8 @@ private void registerPolicy(final String policyId) {
}
}
""".formatted(policyId);
final var entity = restTemplate.exchange(edcProviderUrl + policydefinitionsPath,
HttpMethod.POST, toEntity(body), String.class);
final var entity = restTemplate.exchange(edcProviderUrl + policydefinitionsPath, HttpMethod.POST,
toEntity(body), String.class);

if (entity.getStatusCode().is2xxSuccessful()) {
log.info("Notification policy registered successfully.");
Expand All @@ -194,8 +194,8 @@ private void registerContractDefinition(final String contractId, final String as
}
""".formatted(contractId, contractId, assetId);

final var entity = restTemplate.exchange(edcProviderUrl + contractdefinitionsPath,
HttpMethod.POST, toEntity(body), String.class);
final var entity = restTemplate.exchange(edcProviderUrl + contractdefinitionsPath, HttpMethod.POST,
toEntity(body), String.class);
if (entity.getStatusCode().is2xxSuccessful()) {
log.info("Notification contract definition registered successfully.");
} else {
Expand Down

0 comments on commit a8bad55

Please sign in to comment.