diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-08-26 20:39:37 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-08-26 20:40:17 +0300 |
commit | c2c680f932c6b4ed2eb622af8c7a9961afa466dd (patch) | |
tree | 9452c018312791b1f5ca75ab7e2bff0daa38bdea /vid-app-common/src/test/java/org | |
parent | 3cafbe1726832f761f1173c2dc7da38767ad1258 (diff) |
Log request-id even when no HttpServletRequest param or no user-session
1. Catch controllers under org.onap.vid.controller.open.
2. Get HttpServletRequest from Spring's context, if needed.
3. Fix the way SetRequestBasedDefaultsIntoGlobalLoggingContext is used.
Change-Id: Iecd46dc10a458bc20d4b3e0bd72ecae37e3218cf
Issue-ID: VID-598
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/logging/VidLoggerAspectTest.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/logging/VidLoggerAspectTest.java b/vid-app-common/src/test/java/org/onap/vid/logging/VidLoggerAspectTest.java deleted file mode 100644 index 82f0b85ba..000000000 --- a/vid-app-common/src/test/java/org/onap/vid/logging/VidLoggerAspectTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * VID - * ================================================================================ - * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.onap.vid.logging; - -import org.aspectj.lang.ProceedingJoinPoint; -import org.junit.Test; -import org.onap.portalsdk.core.util.SystemProperties.SecurityEventTypeEnum; - - -public class VidLoggerAspectTest { - - private VidLoggerAspect createTestSubject() { - return new VidLoggerAspect(); - } - - @Test - public void testVidControllers() throws Exception { - VidLoggerAspect testSubject; - - // default test - testSubject = createTestSubject(); - testSubject.vidControllers(); - } - -} |