diff --git a/cli/app/undeploy.go b/cli/app/undeploy.go index 4fa1f499..da0ed65f 100644 --- a/cli/app/undeploy.go +++ b/cli/app/undeploy.go @@ -59,16 +59,16 @@ Passing "--prune/-p" does not remove those volumes.`, chaosVersion = deployMeta.ChaosVersion } - toWriteVersion := deployMeta.Version + version := deployMeta.Version if deployMeta.IsChaos { - toWriteVersion = chaosVersion + version = chaosVersion } if err := internal.UndeployOverview( app, deployMeta.Version, chaosVersion, - toWriteVersion, + version, ); err != nil { log.Fatal(err) } @@ -86,10 +86,6 @@ Passing "--prune/-p" does not remove those volumes.`, log.Fatal(err) } } - - if err := app.WriteRecipeVersion(toWriteVersion, false); err != nil { - log.Fatalf("writing recipe version failed: %s", err) - } }, } diff --git a/tests/integration/app_undeploy_overview.bats b/tests/integration/app_undeploy_overview.bats index 847def0e..3b8d3ffb 100644 --- a/tests/integration/app_undeploy_overview.bats +++ b/tests/integration/app_undeploy_overview.bats @@ -64,10 +64,6 @@ teardown(){ # env version assert_output --regexp 'CURRENT VERSION.*' + "${latestRelease}" assert_output --regexp 'NEW VERSION.*' + "${headHash:0:8}" - - run grep -q "TYPE=$TEST_RECIPE:${headHash:0:8}" \ - "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" - assert_success } @test "chaos deploy with unstaged commits and undeploy" { @@ -93,10 +89,6 @@ teardown(){ assert_output --regexp 'CURRENT VERSION.*' + "${latestRelease}" assert_output --regexp 'NEW VERSION.*' + "${headHash:0:8}+U" - run grep -q "TYPE=$TEST_RECIPE:${headHash:0:8}" \ - "$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env" - assert_success - run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE/foo" assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo" }