fix: remove tests that are no longer applicable
This commit is contained in:
1 parent
1c917a4c44
commit
18c54d39c0
1 file changed
-28
@@ -80,31 +80,3 @@ teardown() {
|
|||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output "herokuish"
|
assert_output "herokuish"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(build-env) DOKKU_ROOT cache bind is used by default" {
|
|
||||||
run deploy_app
|
|
||||||
echo "output: $output"
|
|
||||||
echo "status: $status"
|
|
||||||
assert_success
|
|
||||||
|
|
||||||
BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}' | head -n1)
|
|
||||||
run /bin/bash -c "docker inspect --format '{{ .HostConfig.Binds }}' $BUILD_CID | tr -d '[]' | cut -f1 -d:"
|
|
||||||
echo "output: $output"
|
|
||||||
echo "status: $status"
|
|
||||||
assert_output "$DOKKU_ROOT/$TEST_APP/cache"
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "(build-env) DOKKU_HOST_ROOT cache bind is used if set" {
|
|
||||||
TMP_ROOT=$(mktemp -d)
|
|
||||||
mkdir -p $DOKKU_ROOT/.dokkurc
|
|
||||||
echo export DOKKU_HOST_ROOT="$TMP_ROOT" >$DOKKU_ROOT/.dokkurc/HOST_ROOT
|
|
||||||
DOKKU_HOST_ROOT="$TMP_ROOT" deploy_app
|
|
||||||
|
|
||||||
BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}' | head -n1)
|
|
||||||
run /bin/bash -c "docker inspect --format '{{ .HostConfig.Binds }}' $BUILD_CID | tr -d '[]' | cut -f1 -d:"
|
|
||||||
echo "output: $output"
|
|
||||||
echo "status: $status"
|
|
||||||
assert_output "$TMP_ROOT/$TEST_APP/cache"
|
|
||||||
|
|
||||||
rm -rf $TMP_ROOT $DOKKU_ROOT/.dokkurc/HOST_ROOT
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user