Minor changes to tests

This commit is contained in:
David Allen 2024-07-30 14:06:31 -06:00
parent 0922bbf5f9
commit 8ff71f6cef
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -11,15 +11,12 @@ import (
"testing" "testing"
magellan "github.com/OpenCHAMI/magellan/internal" magellan "github.com/OpenCHAMI/magellan/internal"
"github.com/OpenCHAMI/magellan/internal/log"
"github.com/sirupsen/logrus"
) )
func TestScanAndCollect(t *testing.T) { func TestScanAndCollect(t *testing.T) {
var ( var (
hosts = []string{"http://127.0.0.1"} hosts = []string{"http://127.0.0.1"}
ports = []int{5000} ports = []int{5000}
l = log.NewLogger(logrus.New(), logrus.DebugLevel)
) )
// do a scan on the emulator cluster with probing disabled and check results // do a scan on the emulator cluster with probing disabled and check results
results := magellan.ScanForAssets(hosts, ports, 1, 30, true, false) 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 // do a collect on the emulator cluster to collect Redfish info
magellan.CollectAll(results) magellan.CollectInventory(&results, &magellan.QueryParams{})
} }
func TestCrawlCommand(t *testing.T) { func TestCrawlCommand(t *testing.T) {