@@ -116,11 +116,17 @@ function test_mariadb_integration() {
116
116
local service_name=mariadb
117
117
TEMPLATES=" mariadb-ephemeral-template.json
118
118
mariadb-persistent-template.json"
119
+ SHORT_VERSION=" ${VERSION// .} "
120
+ if [ " ${OS} " == " rhel7" ]; then
121
+ namespace_image=" rhscl/mariadb-${SHORT_VERSION} -rhel7"
122
+ else
123
+ namespace_image=" ${OS} /mariadb-${SHORT_VERSION} "
124
+ fi
119
125
for template in $TEMPLATES ; do
120
126
ct_os_test_template_app_func " ${IMAGE_NAME} " \
121
127
" ${THISDIR} /${template} " \
122
128
" ${service_name} " \
123
- " ct_os_check_cmd_internal '<SAME_IMAGE> ' '${service_name} -testing' \" echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h <IP> testdb -utestu -ptestp\" '^42' 120" \
129
+ " ct_os_check_cmd_internal 'registry.redhat.io/ ${namespace_image} ' '${service_name} -testing' \" echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h <IP> testdb -utestu -ptestp\" '^42' 120" \
124
130
" -p MARIADB_VERSION=${VERSION} \
125
131
-p DATABASE_SERVICE_NAME=" ${service_name} -testing" \
126
132
-p MYSQL_USER=testu \
@@ -137,13 +143,22 @@ function test_mariadb_imagestream() {
137
143
elif [ " ${OS} " == " rhel9" ]; then
138
144
tag=" -el9"
139
145
fi
140
- ct_os_test_image_stream_template " ${THISDIR} /imagestreams/mariadb-${OS% [0-9]* } .json" " ${THISDIR} /examples/mariadb-ephemeral-template.json" mariadb " -p MARIADB_VERSION=${VERSION}${tag} "
146
+ TEMPLATES=" mariadb-ephemeral-template.json
147
+ mariadb-persistent-template.json"
148
+ for template in $TEMPLATES ; do
149
+ ct_os_test_image_stream_template " ${THISDIR} /imagestreams/mariadb-${OS% [0-9]* } .json" " ${THISDIR} /examples/${template} " mariadb " -p MARIADB_VERSION=${VERSION}${tag} "
150
+ done
141
151
}
142
152
143
153
function test_mariadb_template() {
144
- ct_os_test_image_stream_template " ${THISDIR} /imagestreams/mariadb-${OS% [0-9]* } .json" " ${THISDIR} /mariadb-ephemeral-template.json" mariadb
154
+ TEMPLATES=" mariadb-ephemeral-template.json
155
+ mariadb-persistent-template.json"
156
+ for template in $TEMPLATES ; do
157
+ ct_os_test_image_stream_template " ${THISDIR} /imagestreams/mariadb-${OS% [0-9]* } .json" " ${THISDIR} /examples/${template} " mariadb
158
+ done
145
159
}
146
160
161
+
147
162
# Check the latest imagestreams
148
163
function run_latest_imagestreams() {
149
164
local result=1
0 commit comments