test: int suite fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-17 13:22:14 +02:00
parent e5a6dea10c
commit 8b8e158664
20 changed files with 115 additions and 79 deletions

View File

@ -58,18 +58,18 @@ teardown(){
}
@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 rollback "$TEST_APP_DOMAIN" \
--no-input --no-converge-checks --offline
assert_failure
assert_equal $(_get_current_hash) $wantHash
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l
refute_output --partial "$latestRelease"
}
@test "error if not already deployed" {