From a93b19450f6fb966afa1c30a6795e8e670d2aee7 Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Wed, 24 May 2017 13:46:23 -0400 Subject: Update the aai-common with the latest code Change-Id: Ia4758a3d7e462e5120fa1db7ebe97adaeac3ebc2 Signed-off-by: Venkata Harish K Kajur --- .../etc/appprops/error.properties | 1 + .../bundleconfig-local/etc/oxm/aai_oxm_v10.xml | 6 +- .../bundleconfig-local/etc/oxm/aai_oxm_v9.xml | 6 +- .../dependencies/vRouterServiceInstanceFile.txt | 6 + aai-core/src/test/resources/log4j.properties | 3 + aai-core/src/test/resources/logback.xml | 292 +++++++++++++++++++++ 6 files changed, 308 insertions(+), 6 deletions(-) create mode 100644 aai-core/src/test/resources/bundleconfig-local/etc/scriptdata/dependencies/vRouterServiceInstanceFile.txt create mode 100644 aai-core/src/test/resources/log4j.properties create mode 100644 aai-core/src/test/resources/logback.xml (limited to 'aai-core/src/test/resources') diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties index 4e98d62c..11416ca4 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/error.properties @@ -110,6 +110,7 @@ AAI_6142=5:4:INFO:6142:400:3000:Retrying transaction AAI_6143=5:4:INFO:6143:400:3000:Ghost vertex found AAI_6144=5:4:WARN:6144:400:3000:Cycle found in graph AAI_6145=5:4:ERROR:6145:400:3000:Cannot create a nested/containment edge via relationship +AAI_6146=5:4:ERROR:6146:400:3000:Ambiguous identity map found, use a URI instead #--- aaicsvp: 7101-7199 AAI_7101=5:4:ERROR:7101:500:3002:Unexpected error in CSV file processing diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v10.xml b/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v10.xml index 9c3c5e87..af05d3d9 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v10.xml +++ b/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v10.xml @@ -5048,7 +5048,7 @@ - + @@ -5084,7 +5084,7 @@ - + @@ -6405,7 +6405,7 @@ - + diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v9.xml b/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v9.xml index ea77e8e5..dab82440 100644 --- a/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v9.xml +++ b/aai-core/src/test/resources/bundleconfig-local/etc/oxm/aai_oxm_v9.xml @@ -4342,7 +4342,7 @@ - + @@ -4372,7 +4372,7 @@ - + @@ -5417,7 +5417,7 @@ - + diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/scriptdata/dependencies/vRouterServiceInstanceFile.txt b/aai-core/src/test/resources/bundleconfig-local/etc/scriptdata/dependencies/vRouterServiceInstanceFile.txt new file mode 100644 index 00000000..a5be7911 --- /dev/null +++ b/aai-core/src/test/resources/bundleconfig-local/etc/scriptdata/dependencies/vRouterServiceInstanceFile.txt @@ -0,0 +1,6 @@ +vnf-id,service-instance-id,global-customer-id +vnf-id1,sample-service-instance-id,customer-id1 +vnf-id2,sample-service-instance-id-1,customer-id1 +vnf-id3,sample-service-instance-id-2,customer-id2 +vnf-id5,sample-service-instance-id-3,customer-id3 +vnf-id6,sample-service-instance-id-4,customer-id4 diff --git a/aai-core/src/test/resources/log4j.properties b/aai-core/src/test/resources/log4j.properties new file mode 100644 index 00000000..2e68f61a --- /dev/null +++ b/aai-core/src/test/resources/log4j.properties @@ -0,0 +1,3 @@ +log4j.logger.org.apache.zookeeper=WARN +log4j.logger.org.apache.hadoop.hbase.zookeeper=WARN +log4j.logger.org.apache.hadoop.hbase.client=WARN \ No newline at end of file diff --git a/aai-core/src/test/resources/logback.xml b/aai-core/src/test/resources/logback.xml new file mode 100644 index 00000000..d9627b22 --- /dev/null +++ b/aai-core/src/test/resources/logback.xml @@ -0,0 +1,292 @@ + + + + ${module.ajsc.namespace.name} + + + + + + + + ERROR + ACCEPT + DENY + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n + + + + + + + INFO + ACCEPT + DENY + + ${logDirectory}/rest/metric.log + + ${logDirectory}/rest/metric.log.%d{yyyy-MM-dd} + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/rest/debug.log + + ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + + + + + WARN + ACCEPT + DENY + + ${logDirectory}/rest/error.log + + ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} + + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + + + + + + + audit + + co\=aairest + + level == INFO && audit.matches(formattedMessage) + + ACCEPT + DENY + + ${logDirectory}/rest/audit.log + + ${logDirectory}/rest/metric.log.%d{yyyy-MM-dd} + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + + + + + + ${logDirectory}/rest/audit.log + + ${logDirectory}/rest/audit-${Pid}.%d{yyyy-MM-dd}.log.zip + + + + 5MB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + + + + + + + ${logDirectory}/rest/perform.log + + ${logDirectory}/rest/perform-${Pid}.%d{yyyy-MM-dd}.log.zip + + + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${JMS_LOGGER_AUDIT_QUEUE_BINDING} + + + + + + + + ${JMS_LOGGER_PERF_QUEUE_BINDING} + + + + + + + 1000 + 0 + + + + + 1000 + 0 + + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg