Skip to content
Permalink
4fe18da91a
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (14 sloc) 458 Bytes
#!/usr/bin/env bats
load ../common
# These tests assume the pipeline will start and stop the container.
@test "Leaves running process" {
result="$(docker ps | grep $imagename)"
[ "$result" != '' ]
}
@test "Exposes running Tomcat service" {
result="$(docker exec -i $imagename curl http://localhost:8080/)"
[ "$result" != '' ]
}
@test "Service is Shibboleth" {
docker exec -i $imagename curl -silent http://localhost:8080/ | grep 'Shibboleth'
}