mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
47 lines
1.0 KiB
Bash
47 lines
1.0 KiB
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
setup() {
|
|
global_setup
|
|
create_app
|
|
}
|
|
|
|
teardown() {
|
|
destroy_app
|
|
global_teardown
|
|
}
|
|
|
|
@test "(init) buildpack" {
|
|
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"
|
|
}
|
|
|
|
@test "(init) dockerfile no tini" {
|
|
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"
|
|
}
|
|
|
|
@test "(init) dockerfile with tini" {
|
|
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"
|
|
}
|