[client unit-test] don't run create/destroy twice. actually clean up from create

This commit is contained in:
Michael Hobbs committed 2015-02-25 19:47:45 -08:00
1 parent 53f9974f6f
commit 482b680e16
1 file changed
+4 -20
+4 -20
View File
@@ -27,20 +27,16 @@ teardown() {
assert_success assert_success
} }
@test "dokku client (apps:create)" { @test "dokku client (apps:create AND apps:destroy)" {
destroy_app setup_client_repo
run ./contrib/dokku_client.sh apps:create $TEST_APP run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh apps:create"
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_success assert_success
} run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh --force apps:destroy"
@test "dokku client (apps:destroy)" {
run ./contrib/dokku_client.sh -- --force apps:destroy $TEST_APP
echo "output: "$output echo "output: "$output
echo "status: "$status echo "status: "$status
assert_success assert_success
create_app # prevent teardown() failure
} }
@test "dokku client (config:set)" { @test "dokku client (config:set)" {
@@ -164,15 +160,3 @@ teardown() {
echo "status: "$status echo "status: "$status
assert_success assert_success
} }
@test "dokku client (apps:create AND apps:destroy)" {
setup_client_repo
run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh apps:create"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "echo ${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh --force apps:destroy"
echo "output: "$output
echo "status: "$status
assert_success
}