From f9ea7506d00e752c84767232ef08f6430ef73b02 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 15 Feb 2026 14:46:54 +0100 Subject: [PATCH] test: https://git.coopcloud.tech/toolshed/abra/pulls/761 --- tests/integration/app_new.bats | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/integration/app_new.bats b/tests/integration/app_new.bats index 53bc3ca0..c7721c3a 100644 --- a/tests/integration/app_new.bats +++ b/tests/integration/app_new.bats @@ -63,6 +63,30 @@ teardown(){ assert_success } +@test "ensure recipe is up-to-date" { + run bash -c 'git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l' + assert_success + assert_output --partial '0.3.5+1.21.0' + + run bash -c 'git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -d 0.3.5+1.21.0' + assert_success + + run bash -c 'git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l' + assert_success + refute_output --partial '0.3.5+1.21.0' + + run $ABRA app new "$TEST_RECIPE" \ + --no-input \ + --server "$TEST_SERVER" \ + --domain "$TEST_APP_DOMAIN" + assert_success + assert_exists "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" + + run grep -q "TYPE=$TEST_RECIPE:0.3.5+1.21.0" \ + "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" + assert_success +} + @test "create new app with version commit" { tagHash=$(_get_tag_hash "0.3.0+1.21.0")