forked from toolshed/abra
test: int suite fixes
This commit is contained in:
@ -19,8 +19,9 @@ setup(){
|
||||
}
|
||||
|
||||
teardown(){
|
||||
_undeploy_app
|
||||
_reset_recipe
|
||||
_reset_tags
|
||||
_undeploy_app
|
||||
}
|
||||
|
||||
# bats test_tags=slow
|
||||
@ -105,20 +106,18 @@ test_cmd_export"
|
||||
}
|
||||
|
||||
@test "ensure recipe not up to date if --offline" {
|
||||
wantHash=$(_get_n_hash 3)
|
||||
_ensure_env_version "0.1.0+1.20.0"
|
||||
latestRelease=$(_latest_release)
|
||||
|
||||
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" reset --hard HEAD~3
|
||||
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -d "$latestRelease"
|
||||
assert_success
|
||||
|
||||
assert_equal $(_get_current_hash) "$wantHash"
|
||||
|
||||
run $ABRA app cmd --local --offline "$TEST_APP_DOMAIN" test_cmd
|
||||
assert_success
|
||||
assert_output --partial 'baz'
|
||||
|
||||
assert_equal $(_get_current_hash) $wantHash
|
||||
|
||||
_reset_recipe "$TEST_RECIPE"
|
||||
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l
|
||||
refute_output --partial "$latestRelease"
|
||||
}
|
||||
|
||||
@test "error if missing arguments without passing --local" {
|
||||
|
Reference in New Issue
Block a user