Skip to content

Commit

Permalink
Fix imagename for RHEL7
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Dec 4, 2023
1 parent 87ed719 commit a096922
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test-lib-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ function test_mysql_integration() {
local service_name=mysql
TEMPLATES="mysql-ephemeral-template.json
mysql-persistent-template.json"

if [ "${OS}" == "rhel7" ]; then
namespace_image="rhscl/mysql-80-rhel7"
else
namespace_image="${OS}/mysql-80"
fi
for template in $TEMPLATES; do
ct_os_test_template_app_func "${IMAGE_NAME}" \
"${THISDIR}/${template}" \
"${service_name}" \
"ct_os_check_cmd_internal 'registry.redhat.io/${OS}/mysql-80' '${service_name}-testing' \"echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h <IP> testdb -utestu -ptestp\" '^42' 120" \
"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" \
"-p MYSQL_VERSION=${VERSION} \
-p DATABASE_SERVICE_NAME="${service_name}-testing" \
-p MYSQL_USER=testu \
Expand Down

0 comments on commit a096922

Please sign in to comment.