RPM uses a wrong file in the config, fix it in the container
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2092356
This commit is contained in:
parent
e244844b9e
commit
55915bde9d
43 changed files with 6161 additions and 0 deletions
35
test/test-lib-php.sh
Normal file
35
test/test-lib-php.sh
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Functions for tests for the PHP image in OpenShift.
|
||||
#
|
||||
# IMAGE_NAME specifies a name of the candidate image used for testing.
|
||||
# The image has to be available before this script is executed.
|
||||
#
|
||||
|
||||
THISDIR=$(dirname ${BASH_SOURCE[0]})
|
||||
|
||||
source ${THISDIR}/test-lib.sh
|
||||
source ${THISDIR}/test-lib-openshift.sh
|
||||
|
||||
function test_php_integration() {
|
||||
local image_name=$1
|
||||
ct_os_test_s2i_app "${image_name}" \
|
||||
"https://github.com/sclorg/s2i-php-container.git" \
|
||||
"test/test-app" \
|
||||
"Test PHP passed"
|
||||
}
|
||||
|
||||
# Check the imagestream
|
||||
function test_php_imagestream() {
|
||||
case ${OS} in
|
||||
rhel7|centos7) ;;
|
||||
*) echo "Imagestream testing not supported for $OS environment." ; return 0 ;;
|
||||
esac
|
||||
|
||||
ct_os_test_image_stream_s2i "${THISDIR}/imagestreams/php-${OS%[0-9]*}.json" "${IMAGE_NAME}" \
|
||||
"https://github.com/sclorg/s2i-php-container.git" \
|
||||
test/test-app \
|
||||
"Test PHP passed"
|
||||
}
|
||||
|
||||
# vim: set tabstop=2:shiftwidth=2:expandtab:
|
||||
Loading…
Add table
Add a link
Reference in a new issue