From fa2f096cd10c54a9a88e1a314924791330e59439 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Fri, 17 May 2024 12:03:29 +1000 Subject: [PATCH] Adjust test to allow healthcheck@localhost to trigger the test. --- .test/run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.test/run.sh b/.test/run.sh index 449b1af..17a2604 100755 --- a/.test/run.sh +++ b/.test/run.sh @@ -317,7 +317,8 @@ killoff --silent \ -e "show create user") # shellcheck disable=SC2016,SC2076 - [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || \ + [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`localhost` IDENTIFIED' ]] || \ + [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || \ [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`127.0.0.1` IDENTIFIED' ]] || die "healthcheck wasn't created how I was expected" grants="$(docker exec --user mysql -i \ @@ -326,7 +327,8 @@ killoff --silent \ -e show\ grants)" - [[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || \ + [[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`localhost\` ]] || \ + [[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || \ [[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`127.0.0.1\` ]] || die "healthcheck wasn't granted what I was expected" killoff