Skip to content

Commit 128932f

Browse files
authored
Merge pull request sclorg#467 from sclorg/support_cvp
This pull request adds support for testing container in CVP pipeline
2 parents 8aafd89 + 68aaf7e commit 128932f

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

test/imagestreams

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../imagestreams/

test/run-openshift-remote-cluster

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
THISDIR=$(dirname ${BASH_SOURCE[0]})
1212

13-
source ${THISDIR}/test-lib-postgresql.sh
13+
source "${THISDIR}/test-lib-postgresql.sh"
14+
source "${THISDIR}/test-lib-remote-openshift.sh"
15+
1416
TEST_LIST="\
1517
test_postgresql_integration
1618
test_postgresql_imagestream
@@ -24,6 +26,8 @@ ct_os_check_compulsory_vars
2426

2527
ct_os_check_login || exit 1
2628

29+
ct_os_tag_image_for_cvp "postgresql"
30+
2731
set -u
2832

2933
# For testing on OpenShift 4 we use internal registry

test/test-lib-postgresql.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function test_postgresql_integration() {
2929
# Check the imagestream
3030
function test_postgresql_imagestream() {
3131
case ${OS} in
32-
rhel7|centos7) ;;
32+
rhel7|centos7|rhel8) ;;
3333
*) echo "Imagestream testing not supported for $OS environment." ; return 0 ;;
3434
esac
3535
local tag="-el7"
3636
if [ "${OS}" == "rhel8" ]; then
3737
tag="-el8"
3838
fi
39-
ct_os_test_image_stream_template "${THISDIR}/../imagestreams/postgresql-${OS%[0-9]*}.json" "${THISDIR}/../examples/postgresql-ephemeral-template.json" postgresql "-p POSTGRESQL_VERSION=${VERSION}${tag}"
39+
ct_os_test_image_stream_template "${THISDIR}/imagestreams/postgresql-${OS%[0-9]*}.json" "${THISDIR}/examples/postgresql-ephemeral-template.json" postgresql "-p POSTGRESQL_VERSION=${VERSION}${tag}"
4040
}
4141

4242
# vim: set tabstop=2:shiftwidth=2:expandtab:

test/test-openshift.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../common/test-openshift.yaml

0 commit comments

Comments
 (0)