Skip to content

Commit

Permalink
Debug : testing output of test
Browse files Browse the repository at this point in the history
  • Loading branch information
casibbald committed Dec 9, 2024
1 parent 47448b2 commit 6081435
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions pkg/run/install/install_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6081435

Please sign in to comment.