aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorThomas <>2022-12-02 07:33:30 +0100
committerThomas <>2022-12-02 07:33:30 +0100
commitd4811a0890a72198abae5b4a8bfa756ada1fc3f6 (patch)
treefb2db0c387de8324d0dd16af5190ebc8f13931fe /modules
parent566f85f5a93e83074f15a6f7caf5e16a04012d26 (diff)
downloadNational_eIDAS_Gateway-d4811a0890a72198abae5b4a8bfa756ada1fc3f6.tar.gz
National_eIDAS_Gateway-d4811a0890a72198abae5b4a8bfa756ada1fc3f6.tar.bz2
National_eIDAS_Gateway-d4811a0890a72198abae5b4a8bfa756ada1fc3f6.zip
chore(ida): change config property for HealthIndicator from IDA metadata URL to IDA EntityId
Reason: EntityId is the default configuration property
Diffstat (limited to 'modules')
-rw-r--r--modules/authmodule_id-austria/src/main/java/at/asitplus/eidas/specific/modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java2
-rw-r--r--modules/authmodule_id-austria/src/test/java/at/asitplus/eidas/specific/modules/auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/authmodule_id-austria/src/main/java/at/asitplus/eidas/specific/modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java b/modules/authmodule_id-austria/src/main/java/at/asitplus/eidas/specific/modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java
index 5e1d889e..7b94462a 100644
--- a/modules/authmodule_id-austria/src/main/java/at/asitplus/eidas/specific/modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java
+++ b/modules/authmodule_id-austria/src/main/java/at/asitplus/eidas/specific/modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java
@@ -35,7 +35,7 @@ public class IdAustriaAuthHealthCheck implements HealthIndicator {
@Override
public Health health() {
String msNodeEntityID = authConfig.getBasicConfiguration(
- IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_METADATAURL);
+ IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_ENTITYID);
if (StringUtils.isEmpty(msNodeEntityID)) {
log.trace("No ID Austria EntityId in configuration. Skipping tests ... ");
diff --git a/modules/authmodule_id-austria/src/test/java/at/asitplus/eidas/specific/modules/auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java b/modules/authmodule_id-austria/src/test/java/at/asitplus/eidas/specific/modules/auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java
index 9856ca73..6c3fad63 100644
--- a/modules/authmodule_id-austria/src/test/java/at/asitplus/eidas/specific/modules/auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java
+++ b/modules/authmodule_id-austria/src/test/java/at/asitplus/eidas/specific/modules/auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java
@@ -66,7 +66,7 @@ public class IdAustriaAuthHealthCheckTest {
@Test
public void notActive() {
//set-up test
- config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_METADATAURL,
+ config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_ENTITYID,
null);
//perform check
@@ -82,7 +82,7 @@ public class IdAustriaAuthHealthCheckTest {
XMLParserException, UnmarshallingException, MarshallingException {
//set-up test
- config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_METADATAURL,
+ config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_ENTITYID,
mockServerUrl.url().toString());
injectValidHttpMetadata(mockServerUrl.url().toString());
@@ -99,7 +99,7 @@ public class IdAustriaAuthHealthCheckTest {
XMLParserException, UnmarshallingException, MarshallingException, ResolverException {
//set-up test
provider.clear();
- config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_METADATAURL,
+ config.putConfigValue(IdAustriaAuthConstants.CONFIG_PROPS_IDAUSTRIA_ENTITYID,
"http://localhost:1234/junit/metadata");
//perform check