Permalink
Cannot retrieve contributors at this time
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?
base/tests/base.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (30 sloc)
1.06 KB
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 "Base container is running" { | |
run docker inspect $maintainer/$imagename | |
[ "$status" -eq 0 ] | |
} | |
@test "curl can connect to InCommon cert chain site successfully" { | |
run docker run -i $maintainer/$imagename curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.internet2.edu/ | |
echo ${output} | |
[ "$status" -eq 0 ] | |
[[ ${output} == *"302"* || ${output} == *"200"* ]] | |
} | |
@test "Onbuild support script" { | |
docker run -i $maintainer/$imagename find /opt/autoexec/bin/onbuild.sh | |
} | |
@test "Onbuild support home" { | |
docker run -i $maintainer/$imagename find /opt/autoexec/onbuild | |
} | |
@test "Firstrun support bin" { | |
docker run -i $maintainer/$imagename find /opt/autoexec/bin/firstrun.sh | |
} | |
@test "Firstrun support home" { | |
docker run -i $maintainer/$imagename find /opt/autoexec/firstrun | |
} | |
@test "Onbuild terminates correctly" { | |
docker run -i $maintainer/$imagename /opt/autoexec/bin/onbuild.sh | |
} | |
@test "First run terminates correctly" { | |
docker run -i $maintainer/$imagename /opt/autoexec/bin/firstrun.sh | |
} |