fix: integration tests

This commit is contained in:
2025-03-13 08:31:11 +01:00
parent e58a716fe1
commit 0a371ec360
4 changed files with 8 additions and 5 deletions

View File

@ -154,7 +154,7 @@ teardown(){
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
run $ABRA app deploy "$TEST_APP_DOMAIN" \
--no-input --no-converge-checks --force
--no-input --no-converge-checks --force --debug
assert_failure
assert_output --regexp 'can not redeploy chaos version .*' + "${headHash:0:8}+U"
}
@ -249,7 +249,7 @@ teardown(){
--no-input --no-converge-checks --force
assert_success
assert_output --partial 'CHAOS DEPLOY OVERVIEW'
assert_output --partial 'REDEPLOY OVERVIEW'
assert_output --partial "CURRENT DEPLOYMENT ${headHash:0:8}"
assert_output --partial "ENV VERSION ${headHash:0:8}"
assert_output --partial "NEW DEPLOYMENT ${headHash:0:8}"

View File

@ -164,8 +164,7 @@ teardown(){
run $ABRA app rollback "$TEST_APP_DOMAIN" "0.1.1+1.20.2" --no-input --no-converge-checks
assert_failure
assert_output --partial "0.1.1+1.20.2"
assert_output --partial "${tagHash:0:8}" + 'is not a known version'
assert_output --partial 'current deployment' + "${tagHash:0:8}" + 'is not a known version'
}
# bats test_tags=slow