Eran (ev672n), Vosk | 98402fb | 2018-08-06 15:26:20 +0300 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -x |
| 4 | |
| 5 | # Run chef-solo for configuration |
| 6 | cd chef-solo |
| 7 | chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/tmp/Chef-Solo.log" |
| 8 | |
| 9 | status=$? |
| 10 | if [ $status != 0 ]; then |
| 11 | echo "[ERROR] Problem detected while running chef. Aborting !" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | # Set command parameters |
| 16 | CONF_FILE="/conf/conf.yaml" |
| 17 | CREDENTIALS_FILE="/conf/credentials.yaml" |
| 18 | LOGS_PROP_FILE="file:/conf/log4j.properties" |
| 19 | SUITE_FILE="/testSuite/testSuite.xml" |
| 20 | JAR_FILE="dcae-ci-tests-jar-with-dependencies.jar" |
| 21 | MainClass="org.onap.dcae.ci.run.RunTestSuite" |
| 22 | |
| 23 | # Execute dcae-ci-tests |
| 24 | cd / |
| 25 | |
| 26 | java -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 |