From 8824d311caf6023340e3663f4ff9f61dea8e4241 Mon Sep 17 00:00:00 2001 From: "Kajur, Harish (vk250x)" Date: Wed, 21 Mar 2018 18:26:20 -0400 Subject: Update from titan to using janusgraph Issue-ID: AAI-949 Change-Id: I70029806d3c96f7732778d27a8c7ff75dc5059de Signed-off-by: Kajur, Harish (vk250x) --- .../etc/appprops/error.properties | 2 +- .../etc/appprops/janusgraph-cached.properties | 39 +++ .../etc/appprops/janusgraph-realtime.properties | 36 ++ .../etc/appprops/titan-cached.properties | 39 --- .../etc/appprops/titan-realtime.properties | 36 -- aai-core/src/test/resources/logback.xml | 389 +++++++++++++-------- 6 files changed, 318 insertions(+), 223 deletions(-) create mode 100644 aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties create mode 100644 aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties delete mode 100644 aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-cached.properties delete mode 100644 aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-realtime.properties (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 da9f5e5b..3a5671c2 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 @@ -62,7 +62,7 @@ AAI_5107=5:2:WARN:5107:400:3000:Required information missing AAI_5108=5:2:WARN:5108:200:0:Unexpected information in request being ignored #--- aaidbgen: 6101-6199 -AAI_6101=5:4:ERROR:6101:500:3002:null TitanGraph object passed +AAI_6101=5:4:ERROR:6101:500:3002:null JanusGraph object passed AAI_6102=5:4:WARN:6102:400:3000:Passed-in property is not valid for this nodeType AAI_6103=5:4:WARN:6103:400:3000:Required Node-property not found in input data AAI_6104=5:4:WARN:6104:400:3000:Required Node-property was passed with no data diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties new file mode 100644 index 00000000..9306199d --- /dev/null +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-cached.properties @@ -0,0 +1,39 @@ +# +# ============LICENSE_START======================================================= +# org.onap.aai +# ================================================================================ +# Copyright © 2017 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========================================================= +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +query.fast-property=true +# the following parameters are not reloaded automatically and require a manual bounce +storage.backend=inmemory +storage.hostname=localhost + +#schema.default=none +storage.lock.wait-time=300 +storage.hbase.table=aaigraph-dev1.dev +storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure +#caching on +cache.db-cache = true +cache.db-cache-clean-wait = 20 +cache.db-cache-time = 180000 +cache.db-cache-size = 0.3 + +#load graphson file on startup +load.snapshot.file=false diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties new file mode 100644 index 00000000..6e1863b7 --- /dev/null +++ b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/janusgraph-realtime.properties @@ -0,0 +1,36 @@ +# +# ============LICENSE_START======================================================= +# org.onap.aai +# ================================================================================ +# Copyright © 2017 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========================================================= +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +query.fast-property=true +# the following parameters are not reloaded automatically and require a manual bounce +storage.backend=inmemory +storage.hostname=localhost + +#schema.default=none +storage.lock.wait-time=300 +storage.hbase.table=aaigraph-dev1.dev +storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure +# Setting db-cache to false ensure the fastest propagation of changes across servers +cache.db-cache = false + +#load graphson file on startup +load.snapshot.file=false diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-cached.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-cached.properties deleted file mode 100644 index 9306199d..00000000 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-cached.properties +++ /dev/null @@ -1,39 +0,0 @@ -# -# ============LICENSE_START======================================================= -# org.onap.aai -# ================================================================================ -# Copyright © 2017 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========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -query.fast-property=true -# the following parameters are not reloaded automatically and require a manual bounce -storage.backend=inmemory -storage.hostname=localhost - -#schema.default=none -storage.lock.wait-time=300 -storage.hbase.table=aaigraph-dev1.dev -storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure -#caching on -cache.db-cache = true -cache.db-cache-clean-wait = 20 -cache.db-cache-time = 180000 -cache.db-cache-size = 0.3 - -#load graphson file on startup -load.snapshot.file=false diff --git a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-realtime.properties b/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-realtime.properties deleted file mode 100644 index 6e1863b7..00000000 --- a/aai-core/src/test/resources/bundleconfig-local/etc/appprops/titan-realtime.properties +++ /dev/null @@ -1,36 +0,0 @@ -# -# ============LICENSE_START======================================================= -# org.onap.aai -# ================================================================================ -# Copyright © 2017 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========================================================= -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -query.fast-property=true -# the following parameters are not reloaded automatically and require a manual bounce -storage.backend=inmemory -storage.hostname=localhost - -#schema.default=none -storage.lock.wait-time=300 -storage.hbase.table=aaigraph-dev1.dev -storage.hbase.ext.zookeeper.znode.parent=/hbase-unsecure -# Setting db-cache to false ensure the fastest propagation of changes across servers -cache.db-cache = false - -#load graphson file on startup -load.snapshot.file=false diff --git a/aai-core/src/test/resources/logback.xml b/aai-core/src/test/resources/logback.xml index 37425b97..0258f1de 100644 --- a/aai-core/src/test/resources/logback.xml +++ b/aai-core/src/test/resources/logback.xml @@ -22,24 +22,50 @@ --> - ${module.ajsc.namespace.name} + + + + + + + - - + + + + + + + + + + - - - ERROR - ACCEPT - DENY - + + + %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} + + + + + + ${logDirectory}/rest/sane.log + + ${logDirectory}/rest/sane.log.%d{yyyy-MM-dd} + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n + + 1000 + true + + + @@ -47,124 +73,180 @@ ACCEPT DENY - ${logDirectory}/rest/metric.log + ${logDirectory}/rest/metrics.log - ${logDirectory}/rest/metric.log.%d{yyyy-MM-dd} + ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} + - - - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + ${eelfMetricLogPattern} + + 1000 + true + + - + DEBUG ACCEPT DENY ${logDirectory}/rest/debug.log - ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} + ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} + - - - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + ${eelfLogPattern} + + 1000 + true + + + WARN - ACCEPT - DENY ${logDirectory}/rest/error.log - ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} + ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} + - - - - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + ${eelfErrorLogPattern} - - + 1000 + true + + + + - - - - audit - - co\=aairest - - level == INFO && audit.matches(formattedMessage) - - ACCEPT - DENY - ${logDirectory}/rest/audit.log - ${logDirectory}/rest/metric.log.%d{yyyy-MM-dd} + ${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} + - - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%m%n + + ${eelfAuditLogPattern} + + + + + 1000 + true + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/rest/translog.log + + ${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} + + + + ${eelfTransLogPattern} - + 1000 + true + + + + + WARN - ${logDirectory}/rest/audit.log + ${logDirectory}/dmaapAAIEventConsumer/error.log - ${logDirectory}/rest/audit-${lrmRVer}-${lrmRO}-${Pid}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} - - 5MB - - - "%d [%thread] %-5level %logger{1024} - %msg%n" + + ${eelfLogPattern} - - + + DEBUG + ACCEPT + DENY + + ${logDirectory}/dmaapAAIEventConsumer/debug.log + + ${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} + + + + ${eelfLogPattern} + + + + + INFO + ACCEPT + DENY + + ${logDirectory}/dmaapAAIEventConsumer/metrics.log + + ${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} + + + + ${eelfMetricLogPattern} + + + + WARN - ${logDirectory}/rest/perform.log + ${logDirectory}/external/external.log - ${logDirectory}/rest/perform-${lrmRVer}-${lrmRO}-${Pid}.%d{yyyy-MM-dd}.log.zip + ${logDirectory}/external/external.log.%d{yyyy-MM-dd} - - - "%d [%thread] %-5level %logger{1024} - %msg%n" + + ${eelfLogPattern} + + + + + + + @@ -175,9 +257,11 @@ - + + + @@ -187,6 +271,9 @@ + + + @@ -205,93 +292,101 @@ + + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - ${JMS_LOGGER_AUDIT_QUEUE_BINDING} - - - - - - - - ${JMS_LOGGER_PERF_QUEUE_BINDING} - - - - - - - 1000 - 0 - + + + + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.log + + + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip + + 1 + 9 + + + 5MB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + - - - 1000 - 0 - + + + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.log + + + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip + + 1 + 9 + + + 5MB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + + - - - - - - + + + + + + + + + + + + -- cgit 1.2.3-korg