From 60814359328409974c7d26792ccbbcdeb9aa731e Mon Sep 17 00:00:00 2001 From: Charles Sibbald Date: Mon, 9 Dec 2024 21:17:21 +0200 Subject: [PATCH] Debug : testing output of test --- pkg/run/install/install_dashboard_test.go | 37 ++++++++++++----------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/pkg/run/install/install_dashboard_test.go b/pkg/run/install/install_dashboard_test.go index e5828a22b9..48e1897c01 100644 --- a/pkg/run/install/install_dashboard_test.go +++ b/pkg/run/install/install_dashboard_test.go @@ -218,27 +218,28 @@ var _ = Describe("GetInstalledDashboard", func() { }) Expect(err).ToNot(HaveOccurred()) Expect(dashboardType).To(Equal(DashboardTypeOSS)) + println(dashboardName) Expect(dashboardName).To(Equal("dashboard-2")) }) - It("returns the enterprise dashboard type if the dashboard is installed with a helmrelease", func() { - dashboardType, dashboardName, err := GetInstalledDashboard(fakeContext, fakeClientWithHelmReleases, testNamespace, map[DashboardType]bool{ - DashboardTypeEnterprise: true, - }) - Expect(err).ToNot(HaveOccurred()) - Expect(dashboardType).To(Equal(DashboardTypeEnterprise)) - Expect(dashboardName).To(Equal("dashboard-3")) - }) - - It("returns the enterprise dashboard type if both dashboards are installed with a helmrelease", func() { - dashboardType, dashboardName, err := GetInstalledDashboard(fakeContext, fakeClientWithHelmReleases, testNamespace, map[DashboardType]bool{ - DashboardTypeOSS: true, - DashboardTypeEnterprise: true, - }) - Expect(err).ToNot(HaveOccurred()) - Expect(dashboardType).To(Equal(DashboardTypeEnterprise)) - Expect(dashboardName).To(Equal("dashboard-3")) - }) + // It("returns the enterprise dashboard type if the dashboard is installed with a helmrelease", func() { + // dashboardType, dashboardName, err := GetInstalledDashboard(fakeContext, fakeClientWithHelmReleases, testNamespace, map[DashboardType]bool{ + // DashboardTypeEnterprise: true, + // }) + // Expect(err).ToNot(HaveOccurred()) + // Expect(dashboardType).To(Equal(DashboardTypeEnterprise)) + // Expect(dashboardName).To(Equal("Dashboard-3")) + // }) + // + // It("returns the enterprise dashboard type if both dashboards are installed with a helmrelease", func() { + // dashboardType, dashboardName, err := GetInstalledDashboard(fakeContext, fakeClientWithHelmReleases, testNamespace, map[DashboardType]bool{ + // DashboardTypeOSS: true, + // DashboardTypeEnterprise: true, + // }) + // Expect(err).ToNot(HaveOccurred()) + // Expect(dashboardType).To(Equal(DashboardTypeEnterprise)) + // Expect(dashboardName).To(Equal("Dashboard-3")) + // }) It("returns the oss dashboard type if the dashboard is installed with a deployment only", func() { dashboardType, dashboardName, err := GetInstalledDashboard(fakeContext, fakeClientWithDeployments, testNamespace, map[DashboardType]bool{