summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-batch/src/test/java/org/onap/aaf/auth/helpers/test/JU_Future.java9
-rw-r--r--auth/auth-service/src/main/java/org/onap/aaf/auth/service/api/API_Creds.java2
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 {