From 94c0f9917a8a9a5ed1f8f82340be4c29b7a93c84 Mon Sep 17 00:00:00 2001 From: Chris Grindstaff Date: Fri, 1 Nov 2024 12:40:07 -0400 Subject: [PATCH] ci: keyperf collector does not exist in Harvest version 22.11 --- integration/test/installer/rpm.go | 2 +- integration/test/rpm_installer_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/test/installer/rpm.go b/integration/test/installer/rpm.go index a8154532d..033ffb379 100644 --- a/integration/test/installer/rpm.go +++ b/integration/test/installer/rpm.go @@ -51,7 +51,7 @@ func (r *RPM) Upgrade() bool { rpmFileName := "harvest.rpm" utils.RemoveSafely(rpmFileName) harvestObj := new(Harvest) - if !harvestObj.AllRunning() { + if !harvestObj.AllRunning("keyperf") { utils.PanicIfNotNil(errors.New("pollers are not in a running state before upgrade")) } versionCmd := []string{"-qa", "harvest"} diff --git a/integration/test/rpm_installer_test.go b/integration/test/rpm_installer_test.go index 0016f961f..2215343df 100644 --- a/integration/test/rpm_installer_test.go +++ b/integration/test/rpm_installer_test.go @@ -4,6 +4,7 @@ import ( "github.com/Netapp/harvest-automation/test/installer" "github.com/Netapp/harvest-automation/test/utils" "log" + "log/slog" "os" "testing" ) @@ -38,7 +39,7 @@ func TestRHELInstall(t *testing.T) { } harvestObj := new(installer.Harvest) if harvestObj.AllRunning("keyperf") { - log.Println("All pollers are running") + slog.Info("All pollers but keyperf are running") } else { t.Errorf("One or more pollers are not running.") }