Skip to content

Commit

Permalink
fix api call for cluster faults (#17)
Browse files Browse the repository at this point in the history
* fix api call for cluster faults
  • Loading branch information
mjavier2k authored Apr 13, 2020
1 parent 35d65a3 commit 79d0343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/solidfire/solidfire.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *Client) GetClusterCapacity() (GetClusterCapacityResponse, error) {

func (s *Client) ListClusterActiveFaults() (ListClusterFaultsResponse, error) {
payload := &RPCBody{
Method: "ListClusterActiveFaults",
Method: "ListClusterFaults",
Params: ListClusterFaultsRPCParams{
FaultTypes: "current",
BestPractices: true,
Expand Down
4 changes: 2 additions & 2 deletions pkg/solidfire/solidfire_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestClient_GetClusterCapacity(t *testing.T) {
}
}

func TestClient_ListClusterActiveFaults(t *testing.T) {
func TestClient_ListClusterFaults(t *testing.T) {
fixture, err := ioutil.ReadFile("../../test/fixtures/listclusterfaults.json")
if err != nil {
panic(err)
Expand All @@ -179,7 +179,7 @@ func TestClient_ListClusterActiveFaults(t *testing.T) {
MatchType("json").
JSON(solidfire.RPCBody{
ID: 1,
Method: "ListClusterActiveFaults",
Method: "ListClusterFaults",
Params: solidfire.ListClusterFaultsRPCParams{
FaultTypes: "current",
BestPractices: true,
Expand Down

0 comments on commit 79d0343

Please sign in to comment.