Skip to content
Permalink
effd5212d7
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
@chubing
Latest commit effd521 Oct 8, 2018 History
1 contributor

Users who have contributed to this file

23 lines (18 sloc) 624 Bytes
#!/usr/bin/env bats
load ../common
@test "010 Image is present and healthy" {
docker image inspect ${maintainer}/${imagename}
}
@test "030 Port 443/https is listening" {
docker run -d ${maintainer}/${imagename}
sleep 25
#get cont id
contid=$(docker ps | grep ${maintainer}/${imagename} | cut -f 1 -d ' ')
run docker exec -i ${contid} sh -c 'cat < /dev/null > /dev/tcp/127.0.0.1/443'
docker kill ${contid} &>/dev/null
docker rm ${contid} &>/dev/null
[ "$status" -eq 0 ]
}
@test "070 There are no known security vulnerabilities" {
./tests/clairscan.sh ${maintainer}/${imagename}
}