From 27e1364b7434f7b371d5c9c0c98502a059a9b2b7 Mon Sep 17 00:00:00 2001 From: Cameron Wall <75807506+cameronmwall@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:19:50 -0400 Subject: [PATCH] unit test (#618) unit test unit test unit test unit test unit test unit test unit test unit test unit test unit test unit test Signed-off-by: Cameron Wall --- controllers/backplaneconfig_controller_test.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/controllers/backplaneconfig_controller_test.go b/controllers/backplaneconfig_controller_test.go index 69c7a08b5..00379009a 100644 --- a/controllers/backplaneconfig_controller_test.go +++ b/controllers/backplaneconfig_controller_test.go @@ -566,11 +566,11 @@ var _ = Describe("BackplaneConfig controller", func() { }, { Name: backplanev1.ServerFoundation, - Enabled: true, + Enabled: false, }, { Name: backplanev1.HyperShift, - Enabled: true, + Enabled: false, }, { Name: backplanev1.Hive, @@ -628,6 +628,18 @@ var _ = Describe("BackplaneConfig controller", func() { } createCtx := context.Background() Expect(k8sClient.Create(createCtx, backplaneConfig)).Should(Succeed()) + _, err := reconciler.ensureNoClusterManager(createCtx, backplaneConfig) + Expect(err).To(BeNil()) + _, err = reconciler.ensureNoClusterLifecycle(createCtx, backplaneConfig) + Expect(err).To(BeNil()) + _, err = reconciler.ensureNoManagedServiceAccount(createCtx, backplaneConfig) + Expect(err).To(BeNil()) + _, err = reconciler.ensureNoHive(createCtx, backplaneConfig) + Expect(err).To(BeNil()) + _, err = reconciler.ensureNoHyperShift(createCtx, backplaneConfig) + Expect(err).To(BeNil()) + _, err = reconciler.ensureNoServerFoundation(createCtx, backplaneConfig) + Expect(err).To(BeNil()) By("ensuring each deployment and config is created") for _, test := range tests {