test(integration): ensure timeout handling

This commit is contained in:
2025-08-25 11:36:33 +02:00
parent a2940a84b3
commit 97377dea39
4 changed files with 95 additions and 0 deletions

View File

@ -444,6 +444,24 @@ teardown(){
assert_output --partial "$latestRelease"
}
# bats test_tags=slow
@test "ignore timeout when not present in env" {
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks --debug
assert_success
refute_output --partial "timeout: set to"
}
# bats test_tags=slow
@test "use timeout when present in env" {
run sed -i 's/#TIMEOUT=120/TIMEOUT=120/g' \
"$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env"
assert_success
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks --debug
assert_success
assert_output --partial "timeout: set to 120"
}
# bats test_tags=slow
@test "no chaos version label if no chaos" {
_deploy_app