From 86b58f91285381fa3f4ed68ba4d413964b285247 Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Fri, 28 Sep 2018 00:35:33 +0200 Subject: [PATCH] Add some very basic tests --- tests/main.bats | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/main.bats b/tests/main.bats index 9b19d4e..0856ec5 100755 --- a/tests/main.bats +++ b/tests/main.bats @@ -2,16 +2,18 @@ load ../common -@test "Dummy test 1" { - [ "a" = "a" ] +@test "010 Image is present" { + docker image inspect tier/midpoint:latest } -#@test "MariaDB service available" { -# docker run -i $maintainer/$imagename find /usr/lib/systemd/system/mariadb.service -#} -# -#@test "MariaDB first run consumes tmpfile" { -##2 result="$(docker run -i $maintainer/$imagename find /tmp/firsttimerunning)" -# [ "$result" != '' ] -#} +@test "020 Check basic components" { + docker run -i $maintainer/$imagename \ + find \ + /usr/local/bin/startup.sh \ + /opt/midpoint/var/ \ + /etc/shibboleth/ \ + /etc/httpd/ +} +# not much more to check here, as we cannot start midpoint container without having a repository +# so continuing with tests in demo/plain directory