diff options
author | xuegao <xg353y@intl.att.com> | 2019-11-08 13:10:36 +0100 |
---|---|---|
committer | xuegao <xg353y@intl.att.com> | 2019-11-18 10:41:47 +0100 |
commit | 289e8e1f1858e970f92b50a1e601521edeefd44f (patch) | |
tree | 78246ad3b62c744626811949aea653d0ee7c8e58 /src/test/java/org/onap/clamp/clds | |
parent | 77b0be1b734ae1f785fb35a59387ac5fbcf19266 (diff) |
Create Service object
User Service object to store loop service and resource realted info.
Issue-ID: CLAMP-545
Change-Id: I0df6f5d43d7e0575346e02a27bca5c0b5ecdb0a0
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'src/test/java/org/onap/clamp/clds')
-rw-r--r-- | src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java b/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java index 072d5771..40cc0650 100644 --- a/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java +++ b/src/test/java/org/onap/clamp/clds/it/CldsServiceItCase.java @@ -104,7 +104,6 @@ public class CldsServiceItCase { @Test public void testCldsInfoAuthorized() throws Exception { - Authentication authentication; List<GrantedAuthority> authList = new LinkedList<GrantedAuthority>(); authList.add(new SimpleGrantedAuthority("permission-type-cl-manage|dev|*")); authList.add(new SimpleGrantedAuthority("permission-type-cl|dev|read")); @@ -113,6 +112,7 @@ public class CldsServiceItCase { authList.add(new SimpleGrantedAuthority("permission-type-template|dev|update")); authList.add(new SimpleGrantedAuthority("permission-type-filter-vf|dev|*")); authList.add(new SimpleGrantedAuthority("permission-type-cl-event|dev|*")); + Authentication authentication; authentication = new UsernamePasswordAuthenticationToken(new User("admin", "", authList), "", authList); Mockito.when(securityContext.getAuthentication()).thenReturn(authentication); |