Fixed "componentstatuses" API object JSON descriptions.

This commit is contained in:
Fabio Yeon
2015-04-20 16:49:16 -07:00
parent 78356bf7f9
commit 81ef0198f4
9 changed files with 31 additions and 30 deletions

View File

@@ -67,12 +67,13 @@ func NewTestREST(resp testResponse) *REST {
}
func createTestStatus(name string, status api.ConditionStatus, msg string, err string) *api.ComponentStatus {
return &api.ComponentStatus{
Name: name,
retVal := &api.ComponentStatus{
Conditions: []api.ComponentCondition{
{Type: api.ComponentHealthy, Status: status, Message: msg, Error: err},
},
}
retVal.Name = name
return retVal
}
func TestList_NoError(t *testing.T) {