Skip to content

Commit

Permalink
Improve tests. Use official released mariadb image
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Nov 30, 2023
1 parent b5be1ca commit e367dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-lib-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<SAME_IMAGE>' '${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/${OS}/mariadb-${SHORT_VERSION}:latest' '${service_name}-testing' \"echo 'SELECT 42 as testval\g' | mysql --connect-timeout=15 -h <IP> testdb -utestu -ptestp\" '^42' 120" \
"-p MARIADB_VERSION=${VERSION} \
-p DATABASE_SERVICE_NAME="${service_name}-testing" \
-p MYSQL_USER=testu \
Expand Down

0 comments on commit e367dce

Please sign in to comment.