summaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/ecomp/EcompIntImpl.java2
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java13
2 files changed, 2 insertions, 13 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<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");
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<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