From f70e2b5f66493822b512767d504ae26275cb16a2 Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Tue, 21 Jan 2020 15:29:57 +0200 Subject: [PATCH] Update to Portal SDK v2.6 Change-Id: I602891d783ce4c80fca6e9da3c765218d19da993 Issue-ID: SDC-2684 Signed-off-by: Ofir Sonsino --- .../main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java | 2 +- .../java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java | 13 +------------ pom.xml | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java b/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java index ec349aeac4..1b22889309 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java @@ -328,7 +328,7 @@ public class EcompIntImpl implements IPortalRestAPIService { } @Override - public boolean isAppAuthenticated(HttpServletRequest request) { + public boolean isAppAuthenticated(HttpServletRequest request, Map appCredentials) throws PortalAPIException { final String portal_key = PortalApiProperties.getProperty("portal_pass"); final String portal_user = PortalApiProperties.getProperty("portal_user"); final String USERNAME = request.getHeader("username"); diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java index c32768b85b..d94bdeffc0 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java @@ -87,17 +87,6 @@ public class EcompIntImplTest { result = testSubject.getAvailableRoles("Mock"); } - /*@Test - public void testPushUserRole() throws Exception { - EcompIntImpl testSubject; - String loginId = ""; - List roles = null; - - // test 1 - testSubject = createTestSubject(); - roles = null; - testSubject.pushUserRole(loginId, roles); - }*/ @Test(expected= PortalAPIException.class) public void testGetUserRoles() throws Exception { @@ -117,7 +106,7 @@ public class EcompIntImplTest { HttpServletRequest httpServletRequestImpl = Mockito.mock(HttpServletRequest.class); // default test testSubject = createTestSubject(); - result = testSubject.isAppAuthenticated(httpServletRequestImpl); + result = testSubject.isAppAuthenticated(httpServletRequestImpl, null); } @Test diff --git a/pom.xml b/pom.xml index a151c90d0e..3af9e1fccc 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ Modifications copyright (c) 2018-2019 Nokia 4.1.36.Final 3.1.0 2.18.0 - 2.4.0 + 2.6.0 3.5.0.1 2.1.8 1.18.2 -- 2.16.6