Updated tests to reflect new API changes

This commit is contained in:
David Allen 2024-08-12 13:07:57 -06:00
parent 411102881d
commit da2abdfa8d
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
2 changed files with 22 additions and 9 deletions

View file

@ -13,7 +13,7 @@ import (
"net/http"
"testing"
"github.com/OpenCHAMI/magellan/internal/util"
"github.com/OpenCHAMI/magellan/pkg/client"
"github.com/OpenCHAMI/magellan/pkg/crawler"
)
@ -30,7 +30,7 @@ func TestRedfishV1Availability(t *testing.T) {
body = []byte{}
headers = map[string]string{}
)
res, b, err := util.MakeRequest(nil, url, http.MethodGet, body, headers)
res, b, err := client.MakeRequest(nil, url, http.MethodGet, body, headers)
if err != nil {
t.Fatalf("failed to make request to BMC: %v", err)
}
@ -60,7 +60,7 @@ func TestRedfishVersion(t *testing.T) {
headers = map[string]string{}
)
util.MakeRequest(nil, url, http.MethodGet, body, headers)
client.MakeRequest(nil, url, http.MethodGet, body, headers)
}
// Crawls a BMC node and checks that we're able to query certain properties