Use VersionedParams in "extensions" client.

This commit is contained in:
Wojciech Tyczynski
2015-11-26 10:40:45 +01:00
parent 1dc513d390
commit cdded4f011
13 changed files with 45 additions and 48 deletions

View File

@@ -176,16 +176,6 @@ func TestRequestParam(t *testing.T) {
}
}
func TestTimeoutSeconds(t *testing.T) {
r := &Request{}
r.TimeoutSeconds(time.Duration(5 * time.Second))
if !reflect.DeepEqual(r.params, url.Values{
"timeoutSeconds": []string{"5"},
}) {
t.Errorf("invalid timeoutSeconds parameter: %#v", r)
}
}
func TestRequestVersionedParams(t *testing.T) {
r := (&Request{apiVersion: "v1"}).Param("foo", "a")
if !reflect.DeepEqual(r.params, url.Values{"foo": []string{"a"}}) {