diff --git a/tests/image.bats b/tests/image.bats index db6dfb8..1b92493 100644 --- a/tests/image.bats +++ b/tests/image.bats @@ -8,4 +8,8 @@ load ../common @test "MariaDB service available" { docker run -i $maintainer/$imagename find /usr/lib/systemd/system/mariadb.service -} \ No newline at end of file +} + +@test "MariaDB service is listening on port 3306" { + docker exec -it $imagename netstat -tulpn | grep :3306 +}