mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Minor changes to tests
This commit is contained in:
parent
0922bbf5f9
commit
8ff71f6cef
1 changed files with 1 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue