From cb63cfe9c22406bed4234120b9d1d957324aba06 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 16 Mar 2025 13:54:07 +0100 Subject: [PATCH] refactor: chaos redundant, shorter message --- cli/app/new.go | 2 +- tests/integration/app_new.bats | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cli/app/new.go b/cli/app/new.go index 88ada695..72c25e68 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -185,7 +185,7 @@ var AppNewCommand = &cobra.Command{ newAppServer = "local" } - log.Infof("%s created successfully (version: %s, chaos: %s)", appDomain, recipeVersion, chaosVersion) + log.Infof("%s created (version: %s)", appDomain, recipeVersion) if len(appSecrets) > 0 { rows := [][]string{} diff --git a/tests/integration/app_new.bats b/tests/integration/app_new.bats index bc43b4f4..cc0283e2 100644 --- a/tests/integration/app_new.bats +++ b/tests/integration/app_new.bats @@ -214,8 +214,7 @@ teardown(){ --chaos assert_success assert_exists "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" - assert_output --partial "version: ${currentHash:0:8}" - assert_output --partial "chaos: ${currentHash:0:8}" + assert_output --partial "version: ${currentHash:0:8}+U" assert_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo" assert_equal "$(_git_status)" "?? foo" @@ -242,8 +241,7 @@ teardown(){ --chaos assert_success assert_exists "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" - assert_output --partial "version: ${currentHash:0:8}" - assert_output --partial "chaos: ${currentHash:0:8}" + assert_output --partial "version: ${currentHash:0:8}+U" assert_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo" assert_equal "$(_git_status)" "?? foo"