|
@@ -82,7 +82,7 @@ func TestImagePullWithPrivilegedFuncNoError(t *testing.T) {
|
|
|
client := &Client{
|
|
|
client: newMockClient(func(req *http.Request) (*http.Response, error) {
|
|
|
if !strings.HasPrefix(req.URL.Path, expectedURL) {
|
|
|
- return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL)
|
|
|
+ return nil, fmt.Errorf("expected URL '%s', got '%s'", expectedURL, req.URL)
|
|
|
}
|
|
|
auth := req.Header.Get(registry.AuthHeader)
|
|
|
if auth == "NotValid" {
|
|
@@ -92,7 +92,7 @@ func TestImagePullWithPrivilegedFuncNoError(t *testing.T) {
|
|
|
}, nil
|
|
|
}
|
|
|
if auth != "IAmValid" {
|
|
|
- return nil, fmt.Errorf("Invalid auth header : expected %s, got %s", "IAmValid", auth)
|
|
|
+ return nil, fmt.Errorf("invalid auth header: expected %s, got %s", "IAmValid", auth)
|
|
|
}
|
|
|
query := req.URL.Query()
|
|
|
fromImage := query.Get("fromImage")
|