diff options
author | Manoop Talasila <talasila@research.att.com> | 2018-06-27 17:53:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-06-27 17:53:50 +0000 |
commit | 9ac542482e4710e5566d147ca7a7a42500628ba2 (patch) | |
tree | 219419d7709bb8c54da505f3f64c4068ba57caa1 /ecomp-sdk/epsdk-core | |
parent | 41660425f19da5aaa57f1ce2b6fe56fe6d741b3b (diff) | |
parent | 3772c40e89085db751c2a4823084b0b1810b1b31 (diff) |
Merge "API Versioning for ECOMP Components in SDK"
Diffstat (limited to 'ecomp-sdk/epsdk-core')
3 files changed, 3 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java index 8b7d7fcb..09fb374a 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/LoginServiceCentralizedImpl.java @@ -72,7 +72,7 @@ public class LoginServiceCentralizedImpl extends FusionService implements LoginS @Autowired private UserService userService; - private static String portalApiVersion = "/v1"; + private static String portalApiVersion = "/v3"; @Override public LoginBean findUser(LoginBean bean, String menuPropertiesFilename, diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserServiceCentalizedImpl.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserServiceCentalizedImpl.java index 45ef1557..d44c9d72 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserServiceCentalizedImpl.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserServiceCentalizedImpl.java @@ -65,7 +65,7 @@ public class UserServiceCentalizedImpl implements UserService { @Autowired private DataAccessService dataAccessService; - private static String portalApiVersion = "/v1"; + private static String portalApiVersion = "/v3"; public DataAccessService getDataAccessService() { return dataAccessService; diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java index 6feb5fe6..92adc193 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserServiceCentalizedImplTest.java @@ -75,7 +75,7 @@ public class UserServiceCentalizedImplTest { params.put("user_id", new Long(id)); Mockito.when(dataAccessService.executeNamedQuery("getUserByProfileId", params, null)).thenReturn(orgUsreIds); String responseString = " { \"id\": 2, \"userApps\":[{\"app\":{\"id\":1},\"role\":{\"active\":true, \"roleFunctions\":[{\"id\":1}] } } ] }"; - Mockito.when(restApiRequestBuilder.getViaREST("/v1/user/" + orgUserId, true, id)).thenReturn(responseString); + Mockito.when(restApiRequestBuilder.getViaREST("/v3/user/" + orgUserId, true, id)).thenReturn(responseString); User user = userServiceCentalizedImpl.getUser(id); Assert.assertNotNull(user); |