From 75957dc5b9cea2a0fa5170851051cbf328aa21cb Mon Sep 17 00:00:00 2001 From: Daniel Norberg Date: Thu, 12 Jun 2014 16:35:00 -0400 Subject: [PATCH] cloudcfg: fix TestDoRequest --- pkg/cloudcfg/cloudcfg_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cloudcfg/cloudcfg_test.go b/pkg/cloudcfg/cloudcfg_test.go index f0bdca2bcb4..a80811991bf 100644 --- a/pkg/cloudcfg/cloudcfg_test.go +++ b/pkg/cloudcfg/cloudcfg_test.go @@ -23,6 +23,7 @@ import ( "testing" . "github.com/GoogleCloudPlatform/kubernetes/pkg/api" + "github.com/GoogleCloudPlatform/kubernetes/pkg/client" "github.com/GoogleCloudPlatform/kubernetes/pkg/util" ) @@ -152,7 +153,8 @@ func TestDoRequest(t *testing.T) { } testServer := httptest.NewTLSServer(&fakeHandler) request, _ := http.NewRequest("GET", testServer.URL+"/foo/bar", nil) - body, err := DoRequest(request, "user", "pass") + auth := client.AuthInfo{User: "user", Password: "pass"} + body, err := DoRequest(request, &auth) if request.Header["Authorization"] == nil { t.Errorf("Request is missing authorization header: %#v", *request) }