tests: check orphaned processes are reaped
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
10d2fdea92
commit
26e3232f2c
20
tests/unit/50_init_1.bats
Normal file
20
tests/unit/50_init_1.bats
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load test_helper
|
||||
|
||||
setup() {
|
||||
global_setup
|
||||
create_app
|
||||
}
|
||||
|
||||
teardown() {
|
||||
destroy_app
|
||||
global_teardown
|
||||
}
|
||||
|
||||
@test "(init) buildpack" {
|
||||
deploy_app zombies-buildpack
|
||||
run ps ax
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
20
tests/unit/50_init_2.bats
Normal file
20
tests/unit/50_init_2.bats
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load test_helper
|
||||
|
||||
setup() {
|
||||
global_setup
|
||||
create_app
|
||||
}
|
||||
|
||||
teardown() {
|
||||
destroy_app
|
||||
global_teardown
|
||||
}
|
||||
|
||||
@test "(init) dockerfile no tini" {
|
||||
deploy_app zombies-dockerfile-no-tini
|
||||
run ps ax
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
20
tests/unit/50_init_3.bats
Normal file
20
tests/unit/50_init_3.bats
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load test_helper
|
||||
|
||||
setup() {
|
||||
global_setup
|
||||
create_app
|
||||
}
|
||||
|
||||
teardown() {
|
||||
destroy_app
|
||||
global_teardown
|
||||
}
|
||||
|
||||
@test "(init) dockerfile with tini" {
|
||||
deploy_app zombies-dockerfile-tini
|
||||
run ps ax
|
||||
echo "output: $output"
|
||||
assert_output_contains "<defunct>" "0"
|
||||
}
|
||||
Reference in New Issue
Block a user