Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
dc8a770713
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
30 lines (23 sloc) 842 Bytes
#!/usr/bin/env bats
load ../common
@test "Has fired autorun firstrun" {
docker exec -i comanage find /opt/log/autoexec.firstrun.log
}
@test "Creates user account with password" {
docker exec -i comanage mysql -u registry_user --password="3cf0ccc7d6b240390188367933c9cd90" -h mariadb -e 'show tables' registry
}
@test "Leaves running mariadb process" {
docker ps | grep mariadb
}
@test "Leaves running comanage process" {
docker ps | grep my/comanage
}
@test "Cache directory created" {
docker exec -i $imagename find /opt/comanage/comanage-registry-$version/app/tmp/cache
}
@test "200 response possible" {
run docker exec -i comanage curl -k -o /dev/null --silent --head --write-out '%{http_code}\n' https://localhost/registry/
echo ${output}
[ "$status" -eq 0 ]
[[ ${output} == *"302"* || ${output} == *"200"* ]]
}