feat: split out test files and execute them manually
This breaks the old grouping mechanism, but honestly that was a weird way of doing it.
This commit is contained in:
@@ -126,6 +126,41 @@ workflows:
|
|||||||
- unit-tests:
|
- unit-tests:
|
||||||
matrix:
|
matrix:
|
||||||
parameters:
|
parameters:
|
||||||
index: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120]
|
index:
|
||||||
|
- app-json
|
||||||
|
- apps
|
||||||
|
- build-env
|
||||||
|
- buildpacks
|
||||||
|
- certs
|
||||||
|
- checks
|
||||||
|
- client
|
||||||
|
- config-oddities
|
||||||
|
- config
|
||||||
|
- core_1
|
||||||
|
- core_2
|
||||||
|
- docker-options
|
||||||
|
- domains
|
||||||
|
- events
|
||||||
|
- git
|
||||||
|
- init
|
||||||
|
- network
|
||||||
|
- nginx-vhosts_1
|
||||||
|
- nginx-vhosts_2
|
||||||
|
- nginx-vhosts_3
|
||||||
|
- plugin
|
||||||
|
- proxy
|
||||||
|
- ps-dockerfile
|
||||||
|
- ps-general
|
||||||
|
- ps-herokuish
|
||||||
|
- repo
|
||||||
|
- report
|
||||||
|
- resource
|
||||||
|
- scheduler-docker-local
|
||||||
|
- ssh_keys
|
||||||
|
- storage
|
||||||
|
- tags
|
||||||
|
- tar
|
||||||
|
- trace
|
||||||
|
- version
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/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"
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bats
|
|
||||||
|
|
||||||
load test_helper
|
|
||||||
|
|
||||||
setup() {
|
|
||||||
global_setup
|
|
||||||
create_app
|
|
||||||
}
|
|
||||||
|
|
||||||
teardown() {
|
|
||||||
destroy_app
|
|
||||||
global_teardown
|
|
||||||
}
|
|
||||||
|
|
||||||
@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"
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bats
|
|
||||||
|
|
||||||
load test_helper
|
|
||||||
|
|
||||||
setup() {
|
|
||||||
global_setup
|
|
||||||
create_app
|
|
||||||
}
|
|
||||||
|
|
||||||
teardown() {
|
|
||||||
destroy_app
|
|
||||||
global_teardown
|
|
||||||
}
|
|
||||||
|
|
||||||
@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"
|
|
||||||
}
|
|
||||||
46
tests/unit/init.bats
Normal file
46
tests/unit/init.bats
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
#!/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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user