Pass resource version to storage List operation.

This commit is contained in:
Wojciech Tyczynski
2015-10-26 14:56:51 +01:00
parent a094a6e3de
commit aa30e38183
32 changed files with 82 additions and 69 deletions

View File

@@ -78,7 +78,7 @@ func createTestStatus(name string, status api.ConditionStatus, msg string, err s
func TestList_NoError(t *testing.T) {
r := NewTestREST(testResponse{code: 200, data: "ok"})
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything())
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything(), nil)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
@@ -92,7 +92,7 @@ func TestList_NoError(t *testing.T) {
func TestList_FailedCheck(t *testing.T) {
r := NewTestREST(testResponse{code: 500, data: ""})
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything())
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything(), nil)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
@@ -107,7 +107,7 @@ func TestList_FailedCheck(t *testing.T) {
func TestList_UnknownError(t *testing.T) {
r := NewTestREST(testResponse{code: 500, data: "", err: fmt.Errorf("fizzbuzz error")})
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything())
got, err := r.List(api.NewContext(), labels.Everything(), fields.Everything(), nil)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}