fix: dont parse chaos version
All checks were successful
continuous-integration/drone/push Build is passing

See #547
This commit is contained in:
decentral1se 2025-04-24 10:56:24 +02:00 committed by decentral1se
parent 1432f480c7
commit 6fb41e5300
2 changed files with 16 additions and 1 deletions

View File

@ -142,7 +142,7 @@ Use "--status/-S" flag to query all servers for the live deployment status.`,
appStats.AutoUpdate = autoUpdate appStats.AutoUpdate = autoUpdate
var newUpdates []string var newUpdates []string
if version != "unknown" { if version != "unknown" && chaosVersion == "unknown" {
if err := app.Recipe.EnsureExists(); err != nil { if err := app.Recipe.EnsureExists(); err != nil {
log.Fatalf("unable to clone %s: %s", app.Name, err) log.Fatalf("unable to clone %s: %s", app.Name, err)
} }

View File

@ -117,3 +117,18 @@ teardown(){
run $ABRA app ls --status run $ABRA app ls --status
assert_success assert_success
} }
# bats test_tags=slow
@test "list with chaos version" {
run bash -c "echo foo >> $ABRA_DIR/recipes/$TEST_RECIPE/foo"
assert_success
assert_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
run $ABRA app deploy "$TEST_APP_DOMAIN" \
--no-input --no-converge-checks --chaos
assert_success
run $ABRA app ls --status
assert_success
assert_output --partial "+U"
}