Cleanup of api path creation in client tests.

Cleanup in client tests: use testapi.ResourcePathWithPrefix function instead of manually create api path.
This commit is contained in:
Jerzy Szczepkowski
2015-08-18 10:04:54 +02:00
parent b5a4a548df
commit 40b121b64c
6 changed files with 6 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ func TestPersistentVolumeWatch(t *testing.T) {
c := &testClient{
Request: testRequest{
Method: "GET",
Path: "/api/" + testapi.Version() + "/watch/" + getPersistentVolumesResoureName(),
Path: testapi.ResourcePathWithPrefix("watch", getPersistentVolumesResoureName(), "", ""),
Query: url.Values{"resourceVersion": []string{}}},
Response: Response{StatusCode: 200},
}