Merge pull request #5838 from nikhiljindal/clientTests

Updating unit tests so that they pass with v1beta3 api
This commit is contained in:
Brian Grant
2015-03-24 17:30:50 -07:00
6 changed files with 148 additions and 155 deletions

View File

@@ -329,7 +329,7 @@ func TestHelperList(t *testing.T) {
t.Errorf("url doesn't contain name: %#v", req.URL)
return false
}
if req.URL.Query().Get("labels") != labels.SelectorFromSet(labels.Set{"foo": "baz"}).String() {
if req.URL.Query().Get(api.LabelSelectorQueryParam(testapi.Version())) != labels.SelectorFromSet(labels.Set{"foo": "baz"}).String() {
t.Errorf("url doesn't contain query parameters: %#v", req.URL)
return false
}