From 182fc41c587d56cdabd8d5010705db6a622e687d Mon Sep 17 00:00:00 2001 From: Ammar Hussein Date: Fri, 16 Jan 2026 14:27:27 -0800 Subject: [PATCH] added integration test --- tests/integration/app_list.bats | 10 ++++++++++ tests/integration/helpers/git.bash | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/integration/app_list.bats b/tests/integration/app_list.bats index ab4e64f4a..ae95d0d7d 100644 --- a/tests/integration/app_list.bats +++ b/tests/integration/app_list.bats @@ -67,6 +67,16 @@ teardown(){ assert_output --partial "$TEST_SERVER" assert_output --partial "$TEST_APP_DOMAIN" assert_output --partial "deployed" + assert_output --partial "latest" + + _remove_tags + + run $ABRA app ls --status + assert_success + assert_output --partial "$TEST_SERVER" + assert_output --partial "$TEST_APP_DOMAIN" + assert_output --partial "deployed" + assert_output --partial "latest" } @test "filter by server" { diff --git a/tests/integration/helpers/git.bash b/tests/integration/helpers/git.bash index e88128ddb..89f00156c 100644 --- a/tests/integration/helpers/git.bash +++ b/tests/integration/helpers/git.bash @@ -17,7 +17,12 @@ _remove_tags(){ run bash -c 'git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l | wc -l' assert_success - assert_output '0' + # If this was done without the --regexp I get this error: + # -- output differs -- + # expected : 0 + # actual : 0 + # -- + assert_output --regexp '[[:space:]]0' } _reset_tags() {