From c7ea77a3fc311fe88ac850d0d3822623675d2922 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 21 May 2024 15:07:02 +0100 Subject: [PATCH] Rename function in apptest framework (#976) Signed-off-by: Marcus Noble --- CHANGELOG.md | 4 ++++ pkg/gen/input/apptest/internal/file/basic_suite.go.template | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3e30f49..477b2d93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Handle renamed function in Apptest template + ## [6.26.2] - 2024-04-25 ### Fixed diff --git a/pkg/gen/input/apptest/internal/file/basic_suite.go.template b/pkg/gen/input/apptest/internal/file/basic_suite.go.template index d0ab7af4..f8dac15e 100644 --- a/pkg/gen/input/apptest/internal/file/basic_suite.go.template +++ b/pkg/gen/input/apptest/internal/file/basic_suite.go.template @@ -22,7 +22,7 @@ func TestBasic(t *testing.T) { // If true, the suite will first install the latest released version of the app before upgrading to the test version WithIsUpgrade(isUpgrade). WithValuesFile("./values.yaml"). - BeforeInstall(func() { + AfterClusterReady(func() { // Do any pre-install checks here (ensure the cluster has needed pre-reqs) }). BeforeUpgrade(func() {