tests: add assertions to various bats tests
Missing these assertions didn't necessarily break tests but they are more correct and having them should help suss out bugs.
This commit is contained in:
@@ -15,7 +15,11 @@ teardown() {
|
||||
@test "(init) buildpack" {
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-buildpack"
|
||||
deploy_app "$APP"
|
||||
run deploy_app "$APP"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
@@ -26,7 +30,11 @@ teardown() {
|
||||
@test "(init) dockerfile no tini" {
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-dockerfile-no-tini"
|
||||
deploy_app "$APP"
|
||||
run deploy_app "$APP"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
@@ -37,7 +45,11 @@ teardown() {
|
||||
@test "(init) dockerfile with tini" {
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-dockerfile-tini"
|
||||
deploy_app "$APP"
|
||||
run deploy_app "$APP"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
|
||||
Reference in New Issue
Block a user