diff --git a/.test/run.sh b/.test/run.sh index b4924116..5bcc78e6 100755 --- a/.test/run.sh +++ b/.test/run.sh @@ -270,8 +270,9 @@ killoff $mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \ --silent \ -e "show create user") - # shellcheck disable=SC2016 - [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || die "healtheck wasn't created how I was expected" + # shellcheck disable=SC2016,SC2076 + [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || \ + [[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`127.0.0.1` IDENTIFIED' ]] || die "healtheck wasn't created how I was expected" grants="$(docker exec --user mysql -i \ $cname \ @@ -279,7 +280,8 @@ killoff --silent \ -e show\ grants)" - [[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || die "healthcheck wasn't granted what I was expected" + [[ "${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 ;&