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:
@@ -130,7 +130,7 @@ function convert::kompose_up_check () {
|
||||
[ $(oc get pods | eval ${query_2} | awk '{ print $3 }' | \
|
||||
grep ${query_2_status} | wc -l) -eq $replica_2 ]; then
|
||||
oc get pods
|
||||
convert::print_pass "All pods are Running now. kompose up is successful."
|
||||
convert::print_pass "All pods are Running now. kompose up is successful.\n"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ function convert::oc_check_route () {
|
||||
fi
|
||||
|
||||
if [ $(oc get route | grep ${route_key} | wc -l ) -gt 0 ]; then
|
||||
convert::print_pass "Route *.${route_key} has been exposed"
|
||||
convert::print_pass "Route *.${route_key} has been exposed\n"
|
||||
else
|
||||
convert::print_fail "Route *.${route_key} has not been exposed\n"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user