Updated tests

This commit is contained in:
David Allen 2024-09-12 10:57:50 -06:00
parent 7b18615e5f
commit dd7bb5ec77
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
2 changed files with 130 additions and 17 deletions

View file

@ -50,10 +50,13 @@ func TestRedfishV1ServiceRootAvailability(t *testing.T) {
)
res, b, err := client.MakeRequest(nil, url, http.MethodGet, body, headers)
if err != nil {
t.Fatalf("failed to make request to BMC node: %w", err)
t.Fatalf("failed to make request to BMC node: %v", err)
}
err = checkResponse(res, b)
if err != nil {
t.Fatalf("failed to check response for redfish service root: %v", err)
}
}
@ -68,9 +71,12 @@ func TestRedfishV1Version(t *testing.T) {
res, b, err := client.MakeRequest(nil, url, http.MethodGet, body, headers)
if err != nil {
t.Fatalf("failed to make request to BMC node: %w", err)
t.Fatalf("failed to make request to BMC node: %v", err)
}
err = checkResponse(res, b)
if err != nil {
t.Fatalf("failed to check response for redfish version: %v", err)
}
}
// Crawls a BMC node and checks that we're able to query certain properties