blob: d0b62977208ead5ad2a37973dba94f007d448583 [file] [log] [blame]
Eran (ev672n), Vosk98402fb2018-08-06 15:26:20 +03001#!/bin/sh
2
3set -x
4
5# Run chef-solo for configuration
6cd chef-solo
7chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/tmp/Chef-Solo.log"
8
9status=$?
10if [ $status != 0 ]; then
11 echo "[ERROR] Problem detected while running chef. Aborting !"
12 exit 1
13fi
14
15# Set command parameters
16CONF_FILE="/conf/conf.yaml"
17CREDENTIALS_FILE="/conf/credentials.yaml"
18LOGS_PROP_FILE="file:/conf/log4j.properties"
19SUITE_FILE="/testSuite/testSuite.xml"
20JAR_FILE="dcae-ci-tests-jar-with-dependencies.jar"
21MainClass="org.onap.dcae.ci.run.RunTestSuite"
22
23# Execute dcae-ci-tests
24cd /
25
26java -Dconfig.resource=${CONF_FILE} \
27 -Dcredentials.file=${CREDENTIALS_FILE} \
28 -Dlog4j.configuration=${LOGS_PROP_FILE} \
29 -DtestSuite=${SUITE_FILE} \
30 -cp $JAR_FILE ${MainClass} \
31 > /logs/dcae_testSuite.out