diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-11-08 16:29:04 -0600 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-11-08 16:29:10 -0600 |
commit | b2925aafd63f031392a4a5d44e105d047af7eed2 (patch) | |
tree | 5be791b54c270cee2116b48578e6cd1088e1c1e6 /auth | |
parent | 07c721465a0cc40d8e215cf5411bfd825b2c6b13 (diff) |
Improve nonContainer Agent Config2.1.7
Issue-ID: AAF-619
Change-Id: I9ea4a5a7fb1d5006d50ffc70f0bc0f98812d1513
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java | 9 | ||||
-rw-r--r-- | auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java b/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java index 92debf44..fe3d5d95 100644 --- a/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java +++ b/auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java @@ -104,24 +104,25 @@ public class JU_Future { @Test public void testResetLocalData() { - future.resetLocalData(); + Future.resetLocalData(); } @Test public void testSizeForDeletion() { - Assert.assertEquals(0, future.sizeForDeletion()); + Assert.assertEquals(0, Future.sizeForDeletion()); } @Test public void testPendingDelete() { - Assert.assertEquals(false, future.pendingDelete(future)); + Assert.assertEquals(false, Future.pendingDelete(future)); } @Test public void testLoad() { Session session = mock(Session.class); Trans trans = mock(Trans.class); - Creator<Future> creator = mock(Creator.class); + @SuppressWarnings("unchecked") + Creator<Future> creator = (Creator<Future>)mock(Creator.class); LogTarget target = mock(LogTarget.class); TimeTaken tt = mock(TimeTaken.class); ResultSet results = mock(ResultSet.class); diff --git a/auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java b/auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java index 964a0522..7a028c91 100644 --- a/auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java +++ b/auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java @@ -100,7 +100,7 @@ public class API_Creds { if (cv.validate(bp.getName(), Type.PASSWORD, bp.getCred(), null) ) { resp.setStatus(HttpStatus.OK_200); } else { - resp.setStatus(HttpStatus.FORBIDDEN_403); + resp.setStatus(HttpStatus.UNAUTHORIZED_401); } } } else { |