tests: All the volumes exposed

This commit is contained in:
Sameer Naik 2015-09-01 15:49:57 +05:30
parent 2dfcacbb26
commit cb248e16df
1 changed files with 8 additions and 0 deletions

View File

@ -71,3 +71,11 @@ create_full_container() {
run docker run --link $CONTAINER_NAME:wildfly --rm $IMAGE_NAME curl -L -i --digest http://$WILDFLY_USER:$WILDFLY_PASSWORD@wildfly:9990/management
[[ "$output" =~ '200 OK' ]]
}
@test "All the volumes exposed" {
create_container -d
run docker inspect $CONTAINER_NAME
[[ "$output" =~ "/app" ]]
[[ "$output" =~ "$VOL_PREFIX/conf" ]]
[[ "$output" =~ "$VOL_PREFIX/logs" ]]
}