diff --git a/cli/app/list.go b/cli/app/list.go index 2c4bf521..c9f1942d 100644 --- a/cli/app/list.go +++ b/cli/app/list.go @@ -113,6 +113,13 @@ Use "--status/-S" flag to query all servers for the live deployment status.`), totalAppsCount++ if status { + if err := app.Recipe.EnsureUpToDate(); err != nil { + log.Warnf( + "Failed to ensure repo is up to date for recipe: %s err: %s", + app.Recipe.Name, + err, + ) + } status := i18n.G("unknown") version := i18n.G("unknown") chaos := i18n.G("unknown") diff --git a/tests/integration/app_list.bats b/tests/integration/app_list.bats index ab4e64f4..ae95d0d7 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 e88128dd..89f00156 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() {