From 6d6508031238b16d153d76b0f68ad7f27d90012c Mon Sep 17 00:00:00 2001 From: statta Date: Tue, 17 Sep 2019 18:44:22 -0400 Subject: HealthCheck & Namespace Check Issue-ID: PORTAL-723 Change-Id: I97ac3c592ae1f7a6142384d70ac6038ccee1d8fb Signed-off-by: statta --- .../java/org/onap/portalapp/portal/controller/AppsController.java | 3 ++- .../src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AppsController.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AppsController.java index 9feecec1..0be0d357 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AppsController.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AppsController.java @@ -789,7 +789,8 @@ public class AppsController extends EPRestrictedBaseController { EcompPortalUtils.setBadPermissions(user, response, "postOnboardingApps"); } else { newOnboardingApp.normalize(); - checkIfNameSpaceIsValid(newOnboardingApp, fieldsValidator, response); + if(newOnboardingApp.isCentralAuth != null && newOnboardingApp.isCentralAuth) + checkIfNameSpaceIsValid(newOnboardingApp, fieldsValidator, response); fieldsValidator = appService.addOnboardingApp(newOnboardingApp, user); response.setStatus(fieldsValidator.httpStatusCode.intValue()); } diff --git a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java index 43449b38..2bf10e43 100644 --- a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java +++ b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/conf/ExternalAppConfig.java @@ -297,15 +297,18 @@ public class ExternalAppConfig extends AppConfig implements Configurable { * @return New instance of {@link SchedulerFactoryBean} */ -/* @Bean + /* + @Bean public EPUebHelper epUebHelper() { return new EPUebHelper(); } -*/ + @Bean public HealthMonitor healthMonitor() { return new HealthMonitor(); } + */ + /** * Creates and returns a new instance of a {@link MainUebHandler}. -- cgit 1.2.3-korg