2014-12-13 18:56:31 -08:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
|
|
load test_helper
|
|
|
|
|
|
2015-04-01 17:44:34 -07:00
|
|
|
@test "(apps) apps" {
|
|
|
|
|
create_app
|
|
|
|
|
run bash -c "dokku apps | grep $TEST_APP"
|
2014-12-13 18:56:31 -08:00
|
|
|
echo "output: "$output
|
|
|
|
|
echo "status: "$status
|
2015-04-01 17:44:34 -07:00
|
|
|
assert_output $TEST_APP
|
|
|
|
|
destroy_app
|
2014-12-13 18:56:31 -08:00
|
|
|
}
|
|
|
|
|
|
2015-04-01 17:44:34 -07:00
|
|
|
@test "(apps) apps:create" {
|
|
|
|
|
run dokku apps:create $TEST_APP
|
2014-12-13 18:56:31 -08:00
|
|
|
echo "output: "$output
|
|
|
|
|
echo "status: "$status
|
2015-04-01 17:44:34 -07:00
|
|
|
assert_success
|
|
|
|
|
destroy_app
|
2014-12-13 18:56:31 -08:00
|
|
|
}
|
|
|
|
|
|
2015-04-01 17:44:34 -07:00
|
|
|
@test "(apps) apps:destroy" {
|
|
|
|
|
create_app
|
|
|
|
|
run bash -c "dokku --force apps:destroy $TEST_APP"
|
2014-12-13 18:56:31 -08:00
|
|
|
echo "output: "$output
|
|
|
|
|
echo "status: "$status
|
|
|
|
|
assert_success
|
|
|
|
|
}
|