Skip to content

Commit

Permalink
Merge pull request #126 from iurygregory/fix_managedby
Browse files Browse the repository at this point in the history
Fix ManagedBy in ComputerSystem
  • Loading branch information
stmcginnis authored Mar 19, 2021
2 parents 1d2c11e + bf26080 commit 261f348
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions redfish/computersystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ func TestComputerSystem(t *testing.T) {
t.Errorf("Invalid allowable reset actions, expected 6, got %d",
len(result.SupportedResetTypes))
}
if len(result.ManagedBy) != 1 {
t.Errorf("Received invalid number of ManagedBy: %d", len(result.ManagedBy))
}
if result.ManagedBy[0] != "/redfish/v1/Managers/BMC-1" {
t.Errorf("Received invalid Managers reference: %s", result.ManagedBy[0])
}
}

// TestComputerSystemUpdate tests the Update call.
Expand Down

0 comments on commit 261f348

Please sign in to comment.