From 05045cd36ad264b5d7b674155699b2cccee71165 Mon Sep 17 00:00:00 2001 From: jh7358 Date: Thu, 25 Apr 2019 20:15:28 -0400 Subject: Refactor xacml-pdp to remove various statics Refactored xacml-pdp to eliminate a number of static fields. Modified junit tests to allocate new ports for each test. Also modified XacmlPolicyUtilsTest to convert path names to match the file system so that the junit will work in OSs other than linux. Replaced logback.xml with a copy of the one from PAP to resolve some issues. Don't print entire message when discarding, as each PDP receives messages for ALL PDPs. Remove shutdown class from Main - just invoke this.shutdown() directly. Added additional comments to CommonRest. Also modified port test parameters. Change-Id: Id8bf7216cdcb59a1a2cb4cb957fa44f640315cfe Issue-ID: POLICY-1645 Signed-off-by: Jim Hahn --- .../src/main/resources/etc/logback.xml | 103 +++++---------------- 1 file changed, 21 insertions(+), 82 deletions(-) (limited to 'packages/policy-xacmlpdp-tarball/src/main') diff --git a/packages/policy-xacmlpdp-tarball/src/main/resources/etc/logback.xml b/packages/policy-xacmlpdp-tarball/src/main/resources/etc/logback.xml index 83e13d7f..34cfc0a5 100644 --- a/packages/policy-xacmlpdp-tarball/src/main/resources/etc/logback.xml +++ b/packages/policy-xacmlpdp-tarball/src/main/resources/etc/logback.xml @@ -13,28 +13,23 @@ 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. - - SPDX-License-Identifier: Apache-2.0 ============LICENSE_END========================================================= --> - + + - - - + - - - + ${logDir}/${errorLog}.log ${logDir}/${errorLog}.%d{yyyy-MM-dd}.%i.log.zip @@ -51,48 +46,29 @@ - - + + - - ${logDir}/${debuLog}.log + + ${logDir}/${debugLog}.log - ${logDir}/${debugLog}.%d{yyyy-MM-dd}.%i.log.zip + ${logDir}/${debugLog}.%d{yyyy-MM-dd}.%i.log.zip + 50MB 30 10GB - - DEBUG - ${debugPattern} - - + + - - ${logDir}/${metricsLog}.log - - ${logDir}/${metricsLog}.%d{yyyy-MM-dd}.%i.log.zip - 50MB - 30 - 10GB - - - ${metricPattern} - - - - - - - - + ${logDir}/${networkLog}.log ${logDir}/${networkLog}.%d{yyyy-MM-dd}.%i.log.zip @@ -106,58 +82,21 @@ - - - - - - ${logDir}/${transactionLog}.log - - ${logDir}/${transactionLog}.%d{yyyy-MM-dd}.%i.log.zip - - 50MB - 30 - 10GB - - - ${transactionPattern} - - - - - + + - - - - - - + + - - - - - - - - - - - - - + - - - - - + + -- cgit 1.2.3-korg