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" {
|
@test "(init) buildpack" {
|
||||||
deploy_app zombies-buildpack
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
run ps ax
|
local APP="zombies-buildpack"
|
||||||
|
deploy_app "$APP"
|
||||||
|
local CIDS=$(get_app_container_ids "$APP")
|
||||||
|
|
||||||
|
run "$DOCKER_BIN" container top "$CIDS"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
assert_output_contains "<defunct>" "0"
|
assert_output_contains "<defunct>" "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,12 @@ teardown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "(init) dockerfile no tini" {
|
@test "(init) dockerfile no tini" {
|
||||||
deploy_app zombies-dockerfile-no-tini
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
run ps auxf
|
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"
|
echo "output: $output"
|
||||||
assert_output_contains "<defunct>" "0"
|
assert_output_contains "<defunct>" "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,12 @@ teardown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "(init) dockerfile with tini" {
|
@test "(init) dockerfile with tini" {
|
||||||
deploy_app zombies-dockerfile-tini
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
run ps ax
|
local APP="zombies-dockerfile-tini"
|
||||||
|
deploy_app "$APP"
|
||||||
|
local CIDS=$(get_app_container_ids "$APP")
|
||||||
|
|
||||||
|
run "$DOCKER_BIN" container top "$CIDS"
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
assert_output_contains "<defunct>" "0"
|
assert_output_contains "<defunct>" "0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user