Skip to content
Snippets Groups Projects
Verified Commit 4c99a1a1 authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Run puppet tests as well

parent 61a5bae5
Branches
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ for f in "${FLAVOR[@]}"; do
testCreate "${TESTTYPE}-${f}" "create"
testCreate "${TESTTYPE}-${f}" "install"
testCreate "${TESTTYPE}-${f}" "ssh_access"
testCreate "${TESTTYPE}-${f}" "puppet_tests"
done
# Poor man's FIFO queue
......@@ -250,6 +251,18 @@ while [[ ${#TOBETESTED[@]} -gt 0 ]]; do
runOnServer "${p_name}" "fdisk -l; cat /proc/mdstat"
t_CheckExitStatus $?
t_Log "We're in! Running Puppet tests"
testStart "${TESTTYPE}-${flavor}" "puppet_tests"
runOnServer "${p_name}" "PUPPET_TEST_TOKEN="${PUPPET_TEST_TOKEN}" bash -s" < ./puppettests.sh
g=$?
t_CheckExitStatus $g
if [[ $g -ne 0 ]]; then
testEnd "${TESTTYPE}-${flavor}" "puppet_tests" $TEST_FAIL
testAddComments "${TESTTYPE}-${flavor}" "puppet_tests" "Puppet tests failed"
else
testEnd "${TESTTYPE}-${flavor}" "puppet_tests" $TEST_PASS
fi
# Remove the server
aimsDelete "${p_name}" "${TESTTYPE}-${flavor}" "ssh_access"
deleteServer "${p_name}" "${TESTTYPE}-${flavor}" "ssh_access"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment