fix: show no images if no diff required
This commit is contained in:
@ -83,9 +83,15 @@ func DeployOverview(
|
|||||||
{i18n.G("CURRENT DEPLOYMENT"), formatter.BoldDirtyDefault(deployedVersion)},
|
{i18n.G("CURRENT DEPLOYMENT"), formatter.BoldDirtyDefault(deployedVersion)},
|
||||||
{i18n.G("ENV VERSION"), formatter.BoldDirtyDefault(envVersion)},
|
{i18n.G("ENV VERSION"), formatter.BoldDirtyDefault(envVersion)},
|
||||||
{i18n.G("NEW DEPLOYMENT"), formatter.BoldDirtyDefault(toDeployVersion)},
|
{i18n.G("NEW DEPLOYMENT"), formatter.BoldDirtyDefault(toDeployVersion)},
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(images) > 0 {
|
||||||
|
imageRows := [][]string{
|
||||||
{"", ""},
|
{"", ""},
|
||||||
{i18n.G("IMAGES"), strings.Join(images, "\n")},
|
{i18n.G("IMAGES"), strings.Join(images, "\n")},
|
||||||
}
|
}
|
||||||
|
rows = append(rows, imageRows...)
|
||||||
|
}
|
||||||
|
|
||||||
if len(secrets) > 0 {
|
if len(secrets) > 0 {
|
||||||
secretsRows := [][]string{
|
secretsRows := [][]string{
|
||||||
|
@ -551,3 +551,13 @@ teardown(){
|
|||||||
assert_success
|
assert_success
|
||||||
refute_output --regexp "coop-cloud.abra-test-recipe.$TEST_SERVER.chaos-version"
|
refute_output --regexp "coop-cloud.abra-test-recipe.$TEST_SERVER.chaos-version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# bats test_tags=slow
|
||||||
|
@test "no IMAGES diff if no images change" {
|
||||||
|
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks --force
|
||||||
|
assert_success
|
||||||
|
refute_output --partial "IMAGES"
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user