Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some very basic tests
mederly committed Sep 27, 2018
1 parent 882c8c9 commit 86b58f9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions 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

0 comments on commit 86b58f9

Please sign in to comment.