From 8ff71f6cef8d8d7cae70a8b721445504879dd0b4 Mon Sep 17 00:00:00 2001 From: David Allen Date: Tue, 30 Jul 2024 14:06:31 -0600 Subject: [PATCH] Minor changes to tests --- tests/api_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/api_test.go b/tests/api_test.go index 558e688..60c1886 100644 --- a/tests/api_test.go +++ b/tests/api_test.go @@ -11,15 +11,12 @@ import ( "testing" magellan "github.com/OpenCHAMI/magellan/internal" - "github.com/OpenCHAMI/magellan/internal/log" - "github.com/sirupsen/logrus" ) func TestScanAndCollect(t *testing.T) { var ( hosts = []string{"http://127.0.0.1"} ports = []int{5000} - l = log.NewLogger(logrus.New(), logrus.DebugLevel) ) // do a scan on the emulator cluster with probing disabled and check results results := magellan.ScanForAssets(hosts, ports, 1, 30, true, false) @@ -33,7 +30,7 @@ func TestScanAndCollect(t *testing.T) { } // do a collect on the emulator cluster to collect Redfish info - magellan.CollectAll(results) + magellan.CollectInventory(&results, &magellan.QueryParams{}) } func TestCrawlCommand(t *testing.T) {