Skip to content

Commit fbb2d9a

Browse files
committed
test: ipv4 or v6 is ok
1 parent 4277fc2 commit fbb2d9a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.test/run.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,18 @@ killoff
270270
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
271271
--silent \
272272
-e "show create user")
273-
# shellcheck disable=SC2016
274-
[[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || die "healtheck wasn't created how I was expected"
273+
# shellcheck disable=SC2016,SC2076
274+
[[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || \
275+
[[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`127.0.0.1` IDENTIFIED' ]] || die "healtheck wasn't created how I was expected"
275276

276277
grants="$(docker exec --user mysql -i \
277278
$cname \
278279
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
279280
--silent \
280281
-e show\ grants)"
281282

282-
[[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || die "healthcheck wasn't granted what I was expected"
283+
[[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || \
284+
[[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`127.0.0.1\` ]] || die "healthcheck wasn't granted what I was expected"
283285
killoff
284286

285287
;&

0 commit comments

Comments
 (0)