From a4e013f83327d820808bd565d2356a7a87689ee8 Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 5 Aug 2020 17:12:51 +0200 Subject: 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 Change-Id: I77909d98c716a8a232f5cc8ae8baddebb4ee581f --- .../sdc-ui-tests/files/default/conf/log4j2.properties | 19 +++++++++++-------- .../cookbooks/sdc-ui-tests/files/default/startTest.sh | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) (limited to 'ui-ci/sdc-ui-tests/chef-repo') diff --git a/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/conf/log4j2.properties b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/conf/log4j2.properties index 4735d086a0..ec22601d6a 100644 --- a/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/conf/log4j2.properties +++ b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-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.janusgraph.diskstorage.cql.CassandraTransaction.level =info -logger.org.janusgraph.diskstorage.cql.CassandraTransaction.appendRef.rolling.ref = RollingFile -logger.org.janusgraph.diskstorage.cql.CassandraTransaction.appendRef.stdout.ref = STDOUT +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 @@ -43,4 +46,4 @@ logger.org.openecomp.sdc.ci.tests.utils.additivity = false rootLogger.level = info rootLogger.appenderRef.stdout.ref = STDOUT -rootLogger.appenderRef.rolling.ref = RollingFile +rootLogger.appenderRef.rolling.ref = RollingFile \ No newline at end of file diff --git a/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/startTest.sh b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/startTest.sh index 42153251f4..d16d05400f 100644 --- a/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/startTest.sh +++ b/ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/startTest.sh @@ -93,7 +93,7 @@ then 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 -- cgit 1.2.3-korg