Skip to content

Commit

Permalink
Minor changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Jul 30, 2024
1 parent 0922bbf commit 8ff71f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down

0 comments on commit 8ff71f6

Please sign in to comment.