This repository was archived by the owner on May 7, 2025. It is now read-only.
File tree 4 files changed +8
-16
lines changed
4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -104,25 +104,19 @@ test_mongodb_replication "${IMAGE_NAME}"
104
104
105
105
# test with the just built image and an integrated template
106
106
echo " Running test_mongodb_integration with ${IMAGE_NAME} "
107
- test_mongodb_integration " ${IMAGE_NAME} " " ${VERSION} " mongodb
107
+ test_mongodb_integration " ${IMAGE_NAME} "
108
108
109
109
# test with a released image and an integrated template
110
- # ignore possible failure of this test for centos images
111
- fail_not_released=true
112
- if [ " ${OS} " == " rhel7" ] ; then
113
- PUBLIC_IMAGE_NAME=${PUBLIC_IMAGE_NAME:- ${REGISTRY:- registry.redhat.io/ } rhscl/ ${BASE_IMAGE_NAME} -${VERSION// ./ } -rhel7}
114
- else
115
- PUBLIC_IMAGE_NAME=${PUBLIC_IMAGE_NAME:- ${REGISTRY:- } centos/ ${BASE_IMAGE_NAME} -${VERSION// ./ } -centos7}
116
- fail_not_released=false
117
- fi
110
+ PUBLIC_IMAGE_NAME=${PUBLIC_IMAGE_NAME:- $(ct_get_public_image_name " ${OS} " " ${BASE_IMAGE_NAME} " " ${VERSION} " )}
118
111
119
112
# Try pulling the image first to see if it is accessible
120
113
if docker pull " ${PUBLIC_IMAGE_NAME} " ; then
121
114
echo " Running test_mongodb_integration with ${PUBLIC_IMAGE_NAME} "
122
- test_mongodb_integration " ${PUBLIC_IMAGE_NAME} " " ${VERSION} " mongodb
115
+ test_mongodb_integration " ${PUBLIC_IMAGE_NAME} "
123
116
else
124
117
echo " Warning: ${PUBLIC_IMAGE_NAME} could not be downloaded via 'docker'"
125
- ! $fail_not_released || false " ERROR: Failed to pull image"
118
+ # ignore possible failure of this test for centos images
119
+ [ " ${OS} " == " rhel7" ] && false " ERROR: Failed to pull image"
126
120
fi
127
121
128
122
# Check the imagestream
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export CT_SKIP_UPLOAD_IMAGE=true
25
25
export CT_NAMESPACE=openshift
26
26
27
27
# Check the template
28
- test_mongodb_integration " ${IMAGE_NAME} " ${VERSION} mongodb
28
+ test_mongodb_integration " ${IMAGE_NAME} "
29
29
30
30
# Check the imagestream
31
31
test_mongodb_imagestream
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ source ${THISDIR}/test-lib-openshift.sh
13
13
14
14
function test_mongodb_integration() {
15
15
local image_name=$1
16
- local VERSION=$2
17
- local service_name=$3
18
- local image_tagged=" ${service_name} :${VERSION} "
16
+ local service_name=mongodb
19
17
ct_os_template_exists mongodb-ephemeral && t=mongodb-ephemeral || t=mongodb-persistent
20
18
ct_os_test_template_app_func " ${image_name} " \
21
19
" ${t} " \
You can’t perform that action at this time.
0 commit comments