From 24accb9cb8000591cc22a5d98d2c079b8084b123 Mon Sep 17 00:00:00 2001 From: "Tschaen, Brendan" Date: Wed, 27 Feb 2019 16:44:36 -0500 Subject: Admin api tests w/ mocked authorization Change-Id: I2069a4c1e9e6985615fce77cfb2a255fc9e322f3 Issue-ID: MUSIC-341 Signed-off-by: Tschaen, Brendan --- src/main/java/org/onap/music/rest/RestMusicAdminAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/onap/music/rest/RestMusicAdminAPI.java') diff --git a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java index 0bca1f99..26069ebe 100755 --- a/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java +++ b/src/main/java/org/onap/music/rest/RestMusicAdminAPI.java @@ -118,7 +118,7 @@ public class RestMusicAdminAPI { ErrorSeverity.CRITICAL, ErrorTypes.AUTHENTICATIONERROR); resultMap.put("Exception", "Unauthorized: Please check the request parameters. Some of the required values appName(ns), userId, password, isAAF are missing."); - return response.status(Status.UNAUTHORIZED).entity(resultMap).build(); + return response.status(Status.BAD_REQUEST).entity(resultMap).build(); } PreparedQueryObject pQuery = new PreparedQueryObject(); -- cgit 1.2.3-korg