这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions tests/unit/client.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,16 @@ teardown() {
assert_success
}

@test "dokku client (apps:create)" {
destroy_app
run ./contrib/dokku_client.sh apps:create $TEST_APP
@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
}

@test "dokku client (apps:destroy)" {
run ./contrib/dokku_client.sh -- --force apps:destroy $TEST_APP
run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh --force apps:destroy"
echo "output: "$output
echo "status: "$status
assert_success
create_app # prevent teardown() failure
}

@test "dokku client (config:set)" {
Expand Down Expand Up @@ -164,15 +160,3 @@ teardown() {
echo "status: "$status
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
}