Skip to content

Commit

Permalink
test: break config file
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Sep 3, 2024
1 parent 0d5a14e commit 97c2acc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -961,12 +961,14 @@ zstd "${initdb}"/*zst*
# ERROR 1045 (28000): Access denied
docker exec "$cname" healthcheck.sh --connect


# break port
docker exec "$cname" sed -i -e 's/\(port=\)/\14/' /var/lib/mysql/.my-healthcheck.cnf

docker exec "$cname" healthcheck.sh --connect || echo "ok, broken port is a connection failure"

# break config file
docker exec "$cname" sed -i -e 's/-client]$//' /var/lib/mysql/.my-healthcheck.cnf
docker exec "$cname" healthcheck.sh --connect || echo "ok, broken config file is a failure"

killoff

docker volume rm "$tmpvol"
Expand Down

0 comments on commit 97c2acc

Please sign in to comment.