Merge pull request #3947 from jayjun/tests
fix: scope init tests to container processes only
This commit is contained in:
@@ -13,8 +13,12 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "(init) buildpack" {
|
||||
deploy_app zombies-buildpack
|
||||
run ps ax
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-buildpack"
|
||||
deploy_app "$APP"
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
|
||||
@@ -13,8 +13,12 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "(init) dockerfile no tini" {
|
||||
deploy_app zombies-dockerfile-no-tini
|
||||
run ps auxf
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-dockerfile-no-tini"
|
||||
deploy_app "$APP"
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
|
||||
@@ -13,8 +13,12 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "(init) dockerfile with tini" {
|
||||
deploy_app zombies-dockerfile-tini
|
||||
run ps ax
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
local APP="zombies-dockerfile-tini"
|
||||
deploy_app "$APP"
|
||||
local CIDS=$(get_app_container_ids "$APP")
|
||||
|
||||
run "$DOCKER_BIN" container top "$CIDS"
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user