summaryrefslogtreecommitdiffstats
path: root/test-apis-ci/sdc-api-tests
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-08-05 17:12:51 +0200
committerSébastien Determe <sebastien.determe@intl.att.com>2020-08-05 15:27:56 +0000
commita4e013f83327d820808bd565d2356a7a87689ee8 (patch)
treef206f012caa4567f17a81fc64bf9a2250dec6487 /test-apis-ci/sdc-api-tests
parentf8e4b3afb43f52631970d965d9aed3ad99a09522 (diff)
Fix broken UI & API tests
Due to issues in the log4j files, the tests can't be started and crash Issue-ID: SDC-3223 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I77909d98c716a8a232f5cc8ae8baddebb4ee581f
Diffstat (limited to 'test-apis-ci/sdc-api-tests')
-rw-r--r--test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties11
-rw-r--r--test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh3
2 files changed, 8 insertions, 6 deletions
diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties
index a0ed4f0c42..ec22601d6a 100644
--- a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties
+++ b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties
@@ -26,16 +26,19 @@ appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %5p %10c:%L - %m%n
appender.console.filter.threshold.type = ThresholdFilter
appender.console.filter.threshold.level = info
-logger.rolling.name = RollingAppender
-logger.rolling.level = info
-logger.rolling.additivity = false
-logger.rolling.appenderRef.rolling.ref = RollingFile
+loggers=org.apache.cassandra.service.StorageProxy,org.janusgraph.diskstorage.cassandra.CassandraTransaction,org.openecomp.sdc.ci.tests.utils
+logger.org.apache.cassandra.service.StorageProxy.name = org.apache.cassandra.service.StorageProxy
logger.org.apache.cassandra.service.StorageProxy.level=info
+logger.org.apache.cassandra.service.StorageProxy.appendRef.rolling.ref = RollingFile
+logger.org.apache.cassandra.service.StorageProxy.appendRef.stdout.ref = STDOUT
+
+logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.name = org.janusgraph.diskstorage.cassandra.CassandraTransaction
logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.level =info
logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.appendRef.rolling.ref = RollingFile
logger.org.janusgraph.diskstorage.cassandra.CassandraTransaction.appendRef.stdout.ref = STDOUT
+logger.org.openecomp.sdc.ci.tests.utils.name = org.openecomp.sdc.ci.tests.utils
logger.org.openecomp.sdc.ci.tests.utils.level = info
logger.org.openecomp.sdc.ci.tests.utils.appendRef.rolling.ref = RollingFile
logger.org.openecomp.sdc.ci.tests.utils.appendRef.stdout.ref = STDOUT
diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh
index a5ad7e239a..32f927ddb0 100644
--- a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh
+++ b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh
@@ -86,14 +86,13 @@ done
CURRENT_DIR=`pwd`
BASEDIR=$(dirname $0)
-
if [ ${BASEDIR:0:1} = "/" ]
then
FULL_PATH=$BASEDIR
else
FULL_PATH=$CURRENT_DIR/$BASEDIR
fi
-LOGS_PROP_FILE=file:${FULL_PATH}/conf/log4j2.properties
+LOGS_PROP_FILE=conf/log4j2.properties
#############################################
TARGET_DIR=${FULL_PATH}/target
CONF_FILE=${FULL_PATH}/conf/sdc.yaml