From e367dce2516f2cd12b44997d62b2d1705b8efc34 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 30 Nov 2023 12:23:05 +0100 Subject: [PATCH] Improve tests. Use official released mariadb image Signed-off-by: Petr "Stone" Hracek --- test/test-lib-mysql.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-lib-mysql.sh b/test/test-lib-mysql.sh index 3440110..dbcd553 100755 --- a/test/test-lib-mysql.sh +++ b/test/test-lib-mysql.sh @@ -116,11 +116,12 @@ function test_mariadb_integration() { local service_name=mariadb TEMPLATES="mariadb-ephemeral-template.json mariadb-persistent-template.json" + SHORT_VERSION="${VERSION//.}" for template in $TEMPLATES; do ct_os_test_template_app_func "${IMAGE_NAME}" \ "${THISDIR}/${template}" \ "${service_name}" \ - "ct_os_check_cmd_internal '' '${service_name}-testing' \"echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h testdb -utestu -ptestp\" '^42' 120" \ + "ct_os_check_cmd_internal 'registry.redhat.io/${OS}/mariadb-${SHORT_VERSION}:latest' '${service_name}-testing' \"echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h testdb -utestu -ptestp\" '^42' 120" \ "-p MARIADB_VERSION=${VERSION} \ -p DATABASE_SERVICE_NAME="${service_name}-testing" \ -p MYSQL_USER=testu \