From 5a7db9cf5e1909389d2d950159b6c859f2dd601a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstro=CC=88m?= Date: Sat, 20 Jun 2020 23:16:06 -0400 Subject: [PATCH] test: check starting InnoDB without a volume Previous versions of MariaDB broke in certain scenarios when using docker, aufs or other mounted drives with Mariadb `10.2.x` and likely also some versions of `10.3.x`. Fixes: https://github.com/jbergstroem/mariadb-alpine/issues/1 --- test/02-innodb.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/02-innodb.bats b/test/02-innodb.bats index dd19d51..ba22e78 100644 --- a/test/02-innodb.bats +++ b/test/02-innodb.bats @@ -11,3 +11,12 @@ load test_helper [[ "$status" -eq 0 ]] decommission "${name}" } + +@test "start a server without a dedicated volume (issue #1)" { + local name="innodb-issue-1" + docker run -d --rm --name "${TEST_PREFIX}-${name}" "${IMAGE}":"${VERSION}" + sleep 5 + run client_query "${name}" "-e 'select 1;'" + [[ "$status" -eq 0 ]] + decommission "${name}" +}