Merge pull request #4008 from dokku/standardize-golang-commands

Standardize golang command code
This commit is contained in:
Jose Diaz-Gonzalez
2020-06-02 12:36:47 -04:00
committed by GitHub
28 changed files with 708 additions and 672 deletions

View File

@@ -80,7 +80,7 @@ teardown() {
echo "output: $output"
echo "status: $status"
assert_output "FAILED: At least one env pair must be given"
[ "$status" -eq 1 ]
assert_failure
run /bin/bash -c "dokku config:get $TEST_APP test_var1 | grep true"
echo "output: $output"
@@ -105,7 +105,7 @@ teardown() {
echo "output: $output"
echo "status: $status"
assert_output "FAILED: At least one env pair must be given"
[ "$status" -eq 1 ]
assert_failure
run /bin/bash -c "dokku --app $TEST_APP config:get test_var1 | grep true"
echo "output: $output"
@@ -150,7 +150,7 @@ teardown() {
echo "output: $output"
echo "status: $status"
assert_output "FAILED: At least one key must be given"
[ "$status" -eq 1 ]
assert_failure
}
@test "(config) global config (herokuish)" {

View File

@@ -19,6 +19,11 @@ SKIPPED_TEST_ERR_MSG="previous test failed! skipping remaining tests..."
# skips remaining tests on first failure
global_setup() {
[[ ! -f "${BATS_PARENT_TMPNAME}.skip" ]] || skip "$SKIPPED_TEST_ERR_MSG"
dokku apps:list
docker container ls
free -m
docker container ls --quiet | xargs -n1 docker container rm -f || true
}
global_teardown() {