aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
diff options
context:
space:
mode:
authorTschaen, Brendan <ctschaen@att.com>2019-02-20 14:35:04 -0500
committerTschaen, Brendan <ctschaen@att.com>2019-02-20 14:35:04 -0500
commit3d3c903eff4f4c90ff3ca90d1d84435fed188f72 (patch)
tree35c55921fd6fd1d31e27b661eb6ec5ceb0fde919 /src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
parentd5fc44114502279cd20a65a420e18f03b205c9ad (diff)
Update MUSIC test cases.
Fix some old test cases that were expecting incorrect output Refactor to REST API suite to re-use cassandra instance Change-Id: I9400b3e1e3ce35114e587336f0841207493c9680 Issue-ID: MUSIC-341 Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
Diffstat (limited to 'src/main/java/org/onap/music/rest/RestMusicAdminAPI.java')
-rwxr-xr-xsrc/main/java/org/onap/music/rest/RestMusicAdminAPI.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
index 289cab06..6ad6c03b 100755
--- a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
+++ b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java
@@ -112,6 +112,8 @@ public class RestMusicAdminAPI {
.build();
}
} catch (Exception e) {
+ logger.error(EELFLoggerDelegate.errorLogger, "Unable to authenticate", e);
+ response.status(Status.UNAUTHORIZED);
return response.entity(new JsonResponse(ResultType.FAILURE).setError(e.getMessage()).toMap()).build();
}
if (appName == null || userId == null || isAAF == null || password == null) {