Skip to content

Commit

Permalink
separate orchestration props (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
southeo authored Dec 12, 2024
1 parent a24c92e commit ac4b16d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ public class ApplicationProperties {
private String uiUrl;

@NotBlank
private String orchestrationUrl;
private String orchestrationUi;

@NotBlank
private String orchestrationApi;

@NotNull
private Integer maxHandles;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -878,15 +878,15 @@ private List<XmlElement> getXmlElements(String handle, FdoType fdoType, String k
}
case DATA_MAPPING -> {
locations.add(new XmlElement(i.getAndIncrement(), "1",
applicationProperties.getOrchestrationUrl() + "/data-mapping/" + handle, "HTML"));
applicationProperties.getOrchestrationUi() + "/data-mapping/" + handle, "HTML"));
locations.add(new XmlElement(i.getAndIncrement(), "0",
applicationProperties.getOrchestrationUrl() + "/data-mapping/v1/" + handle, "JSON"));
applicationProperties.getOrchestrationApi() + "/data-mapping/v1/" + handle, "JSON"));
}
case SOURCE_SYSTEM -> {
locations.add(new XmlElement(i.getAndIncrement(), "1",
applicationProperties.getOrchestrationUrl() + "/source-system/" + handle, "HTML"));
applicationProperties.getOrchestrationUi() + "/source-system/" + handle, "HTML"));
locations.add(new XmlElement(i.getAndIncrement(), "0",
applicationProperties.getOrchestrationUrl() + "/source-system/v1/" + handle,
applicationProperties.getOrchestrationApi() + "/source-system/v1/" + handle,
"JSON"));
}
case DIGITAL_MEDIA -> {
Expand All @@ -904,9 +904,9 @@ private List<XmlElement> getXmlElements(String handle, FdoType fdoType, String k
applicationProperties.getApiUrl() + "/annotations/v1/" + handle, "JSON"));
case MAS -> {
locations.add(new XmlElement(i.getAndIncrement(), "1",
applicationProperties.getOrchestrationUrl() + "/mas/" + handle, "HTML"));
applicationProperties.getOrchestrationUi() + "/mas/" + handle, "HTML"));
locations.add(new XmlElement(i.getAndIncrement(), "0",
applicationProperties.getOrchestrationUrl() + "/mas/v1/" + handle, "JSON"));
applicationProperties.getOrchestrationApi() + "/mas/v1/" + handle, "JSON"));
}
case ORGANISATION ->
locations.add(new XmlElement(i.getAndIncrement(), "1", keyAttribute, "ROR"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ void init() throws PidResolutionException {
given(pidResolver.getObjectName(any(), anyBoolean())).willReturn(SPECIMEN_HOST_NAME_TESTVAL);
given(applicationProperties.getPrefix()).willReturn(PREFIX);
given(applicationProperties.getApiUrl()).willReturn(API_URL);
given(applicationProperties.getOrchestrationUrl()).willReturn(ORCHESTRATION_URL);
given(applicationProperties.getOrchestrationApi()).willReturn(ORCHESTRATION_URL);
given(applicationProperties.getOrchestrationUi()).willReturn(ORCHESTRATION_URL);
given(applicationProperties.getUiUrl()).willReturn(UI_URL);
given(profileProperties.getIssuedForAgent()).willReturn(ISSUED_FOR_AGENT_TESTVAL);
given(profileProperties.getIssuedForAgentName()).willReturn(ISSUED_FOR_AGENT_NAME_TESTVAL);
Expand Down

0 comments on commit ac4b16d

Please sign in to comment.