forked from LaconicNetwork/kompose
Adding tests for kompose-specific labels and buildconfig dockerfile construct
* Two new scripts testing kompose-specific labels have been added: script/test_in_openshift/tests/routes-service-expose-hostname.sh script/test_in_openshift/tests/routes-service-expose-true.sh * Tests for buildconfig dockerfile construct has been added: script/test_in_openshift/tests/buildconfig_dockerfile.sh * Tests for restart option: script/test_in_openshift/tests/restart-options.sh * Ability to run individual scripts: Changes have been made to script/test_in_openshift/run.sh for running individual scripts: Eg. ./script/test_in_openshift/run.sh script/test_in_openshift/tests/routes-service-expose-true.sh
This commit is contained in:
@@ -34,13 +34,23 @@ fi
|
||||
|
||||
convert::oc_cluster_up
|
||||
|
||||
for test_case in $KOMPOSE_ROOT/script/test_in_openshift/tests/*; do
|
||||
$test_case; exit_status=$?
|
||||
|
||||
if [ -z $1 ]; then
|
||||
for test_case in $KOMPOSE_ROOT/script/test_in_openshift/tests/*; do
|
||||
$test_case; exit_status=$?
|
||||
if [ $exit_status -ne 0 ]; then
|
||||
openshift_exit_status=1
|
||||
fi
|
||||
convert::oc_cleanup
|
||||
done
|
||||
else
|
||||
# Run individual test scripts
|
||||
test_to_run=$1
|
||||
$test_to_run; exit_status=$?
|
||||
if [ $exit_status -ne 0 ]; then
|
||||
openshift_exit_status=1
|
||||
fi
|
||||
convert::oc_cleanup
|
||||
done
|
||||
fi
|
||||
|
||||
convert::oc_cluster_down
|
||||
|
||||
|
||||
Reference in New Issue
Block a user