From d4811a0890a72198abae5b4a8bfa756ada1fc3f6 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Fri, 2 Dec 2022 07:33:30 +0100 Subject: chore(ida): change config property for HealthIndicator from IDA metadata URL to IDA EntityId Reason: EntityId is the default configuration property --- .../modules/auth/idaustria/utils/IdAustriaAuthHealthCheck.java | 2 +- .../auth/idaustria/test/utils/IdAustriaAuthHealthCheckTest.java | 6 +++--- 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 -- cgit v1.2.3