Switch to versioned ListOptions in client.
This commit is contained in:
@@ -27,7 +27,6 @@ import (
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/testapi"
|
||||
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||
)
|
||||
|
||||
func TestNamespaceCreate(t *testing.T) {
|
||||
@@ -96,7 +95,7 @@ func TestNamespaceList(t *testing.T) {
|
||||
},
|
||||
Response: simple.Response{StatusCode: 200, Body: namespaceList},
|
||||
}
|
||||
response, err := c.Setup(t).Namespaces().List(unversioned.ListOptions{})
|
||||
response, err := c.Setup(t).Namespaces().List(api.ListOptions{})
|
||||
|
||||
if err != nil {
|
||||
t.Errorf("%#v should be nil.", err)
|
||||
@@ -178,6 +177,6 @@ func TestNamespaceWatch(t *testing.T) {
|
||||
Query: url.Values{"resourceVersion": []string{}}},
|
||||
Response: simple.Response{StatusCode: 200},
|
||||
}
|
||||
_, err := c.Setup(t).Namespaces().Watch(unversioned.ListOptions{})
|
||||
_, err := c.Setup(t).Namespaces().Watch(api.ListOptions{})
|
||||
c.Validate(t, nil, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user