Switch to versioned ListOptions in client.

This commit is contained in:
Wojciech Tyczynski
2015-12-10 10:39:03 +01:00
parent 4ef062c22f
commit 960808bf08
167 changed files with 602 additions and 671 deletions

View File

@@ -105,7 +105,7 @@ func TestDeploymentList(t *testing.T) {
},
Response: simple.Response{StatusCode: 200, Body: deploymentList},
}
response, err := c.Setup(t).Deployments(ns).List(unversioned.ListOptions{})
response, err := c.Setup(t).Deployments(ns).List(api.ListOptions{})
c.Validate(t, response, err)
}
@@ -174,7 +174,7 @@ func TestDeploymentWatch(t *testing.T) {
},
Response: simple.Response{StatusCode: 200},
}
_, err := c.Setup(t).Deployments(api.NamespaceAll).Watch(unversioned.ListOptions{})
_, err := c.Setup(t).Deployments(api.NamespaceAll).Watch(api.ListOptions{})
c.Validate(t, nil, err)
}
@@ -205,7 +205,7 @@ func TestListDeploymentsLabels(t *testing.T) {
c.Setup(t)
c.QueryValidator[labelSelectorQueryParamName] = simple.ValidateLabels
selector := labels.Set{"foo": "bar", "name": "baz"}.AsSelector()
options := unversioned.ListOptions{LabelSelector: unversioned.LabelSelector{selector}}
options := api.ListOptions{LabelSelector: selector}
receivedPodList, err := c.Deployments(ns).List(options)
c.Validate(t, receivedPodList, err)
}