diff --git a/tests/lca/imagebasedupgrade/cnf/upgrade-talm/tests/e2e-upgrade-test.go b/tests/lca/imagebasedupgrade/cnf/upgrade-talm/tests/e2e-upgrade-test.go index 063edf697..3af53e370 100644 --- a/tests/lca/imagebasedupgrade/cnf/upgrade-talm/tests/e2e-upgrade-test.go +++ b/tests/lca/imagebasedupgrade/cnf/upgrade-talm/tests/e2e-upgrade-test.go @@ -25,8 +25,7 @@ var _ = Describe( Label(tsparams.LabelEndToEndUpgrade), func() { var ( - newIbguBuilder *ibgu.IbguBuilder - clusterList []*clients.Settings + clusterList []*clients.Settings ) BeforeAll(func() { @@ -52,6 +51,13 @@ var _ = Describe( AfterAll(func() { By("Deleting upgrade ibgu created on target hub cluster", func() { + newIbguBuilder := ibgu.NewIbguBuilder(cnfinittools.TargetHubAPIClient, + tsparams.IbguName, tsparams.IbguNamespace). + WithClusterLabelSelectors(tsparams.ClusterLabelSelector). + WithSeedImageRef(cnfinittools.CNFConfig.IbguSeedImage, cnfinittools.CNFConfig.IbguSeedImageVersion). + WithOadpContent(cnfinittools.CNFConfig.IbguOadpCmName, cnfinittools.CNFConfig.IbguOadpCmNamespace). + WithPlan([]string{"Prep", "Upgrade"}, 5, 30) + _, err := newIbguBuilder.DeleteAndWait(1 * time.Minute) Expect(err).ToNot(HaveOccurred(), "Failed to delete prep-upgrade ibgu on target hub cluster")