Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
midPoint_container/tests/main.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Although the tests are quite advanced, they are not really complete yet. Most notably, group membership update in LDAP is not checked now. We should include running Trigger Scanner in these tests eventually.
executable file
39 lines (31 sloc)
977 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bats | |
load ../common | |
@test "010 Image is present" { | |
docker image inspect tier/midpoint:$tag | |
} | |
@test "020 Check basic components" { | |
docker run -i $maintainer/$imagename:$tag \ | |
find \ | |
/usr/local/bin/startup.sh \ | |
/opt/midpoint/var/ \ | |
/etc/shibboleth/ \ | |
/etc/httpd/ | |
} | |
@test "100 Cleanup before further tests - demo/simple" { | |
docker ps -a | |
cd demo/simple ; docker-compose down -v ; true | |
} | |
@test "110 Cleanup before further tests - demo/shibboleth" { | |
docker ps -a | |
cd demo/shibboleth ; docker-compose down -v ; true | |
} | |
@test "120 Cleanup before further tests - demo/postgresql" { | |
docker ps -a | |
cd demo/postgresql ; docker-compose down -v ; true | |
} | |
@test "130 Cleanup before further tests - demo/grouper" { | |
docker ps -a | |
cd demo/grouper ; docker-compose down -v ; true | |
} | |
# not much more to check here, as we cannot start midpoint container without having a repository | |
# so continuing with tests in demo/plain directory |