Update to Portal SDK v2.6 43/100543/4
authorOfir Sonsino <os0695@intl.att.com>
Tue, 21 Jan 2020 13:29:57 +0000 (15:29 +0200)
committerYuli Shlosberg <ys9693@att.com>
Thu, 13 Feb 2020 08:52:43 +0000 (08:52 +0000)
Change-Id: I602891d783ce4c80fca6e9da3c765218d19da993
Issue-ID: SDC-2684
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java
catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java
pom.xml

index ec349ae..1b22889 100644 (file)
@@ -328,7 +328,7 @@ public class EcompIntImpl implements IPortalRestAPIService {
     }
 
     @Override
-    public boolean isAppAuthenticated(HttpServletRequest request) {
+    public boolean isAppAuthenticated(HttpServletRequest request, Map<String,String> 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");
index c32768b..d94bdef 100644 (file)
@@ -87,17 +87,6 @@ public class EcompIntImplTest {
         result = testSubject.getAvailableRoles("Mock");
        }
 
-       /*@Test
-       public void testPushUserRole() throws Exception {
-               EcompIntImpl testSubject;
-               String loginId = "";
-               List<EcompRole> 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 a151c90..3af9e1f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@ Modifications copyright (c) 2018-2019 Nokia
     <netty.version>4.1.36.Final</netty.version>
     <servlet-api.version>3.1.0</servlet-api.version>
     <wire-mock.version>2.18.0</wire-mock.version>
-    <ecomp.version>2.4.0</ecomp.version>
+    <ecomp.version>2.6.0</ecomp.version>
     <cassandra.unit.version>3.5.0.1</cassandra.unit.version>
     <cadi.version>2.1.8</cadi.version>
     <lombok.version>1.18.2</lombok.version>