Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Tests passing locally

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Sep 23, 2016
1 parent 4cfa05b commit d6054b025cb6adb71d064edd614a469f30b730de
Showing with 7 additions and 3 deletions.
  1. +1 −1 bin/recompose.sh
  2. +1 −0 common.bash
  3. +0 −1 conf/db.env
  4. +5 −1 tests/running.bats
@@ -1,3 +1,3 @@
#!/bin/bash

source bin/decompose.sh && source bin/destroy.sh && source bin/prune.sh && source bin/build.sh && source bin/compose.sh
source bin/decompose.sh && source bin/destroy.sh && source bin/prune.sh && source bin/rebuild.sh && source bin/compose.sh
@@ -1,2 +1,3 @@
maintainer="my"
imagename="comanage"
version="1.0.5"
@@ -1,4 +1,3 @@
CREATE_NEW_DATABASE=1
MYSQL_ROOT_PASSWORD=123321
MYSQL_DATADIR=/var/lib/mysqlmounted
TERM=dumb
@@ -18,8 +18,12 @@ load ../common
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 -o /dev/null --silent --head --write-out '%{http_code}\n' https://localhost/
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"* ]]

0 comments on commit d6054b0

Please sign in to comment.
You can’t perform that action at this time.