From c2c680f932c6b4ed2eb622af8c7a9961afa466dd Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Mon, 26 Aug 2019 20:39:37 +0300 Subject: 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 --- .../org/onap/vid/logging/VidLoggerAspectTest.java | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 vid-app-common/src/test/java/org/onap/vid/logging/VidLoggerAspectTest.java (limited to 'vid-app-common/src/test/java/org') 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(); - } - -} -- cgit 1.2.3-korg