From d07b775581069052f83b5bfb9fbbd49b873ebee6 Mon Sep 17 00:00:00 2001 From: Apfelwurm Date: Fri, 13 Feb 2026 17:32:37 +0100 Subject: [PATCH] add integration test that does not use old recipe version when recipe is broken --- tests/integration/app_deploy.bats | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/integration/app_deploy.bats b/tests/integration/app_deploy.bats index fbbeb5ab..9f8f84c3 100644 --- a/tests/integration/app_deploy.bats +++ b/tests/integration/app_deploy.bats @@ -23,6 +23,7 @@ teardown(){ _reset_recipe _undeploy_app _undeploy_app2 "gitea.$TEST_SERVER" + _undeploy_app2 "zammad.$TEST_SERVER" _reset_app _reset_tags @@ -636,3 +637,20 @@ teardown(){ run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input assert_success } + + +@test "does not use old recipe version when recipe is broken" { + + run $ABRA app new zammad \ + --no-input \ + --server "$TEST_SERVER" \ + --domain "zammad.$TEST_SERVER" \ + --secrets + assert_success + assert_exists "$ABRA_DIR/servers/$TEST_SERVER/zammad.$TEST_SERVER.env" + + run $ABRA app deploy "zammad.$TEST_SERVER" --no-input + assert_success + refute_output --partial "1.0.0+6.3.1-95" + +} \ No newline at end of file