Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -82,7 +82,7 @@ func TestImagePullWithPrivilegedFuncNoError(t *testing.T) {
|
| 82 | 82 |
client := &Client{
|
| 83 | 83 |
client: newMockClient(func(req *http.Request) (*http.Response, error) {
|
| 84 | 84 |
if !strings.HasPrefix(req.URL.Path, expectedURL) {
|
| 85 |
- return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL)
|
|
| 85 |
+ return nil, fmt.Errorf("expected URL '%s', got '%s'", expectedURL, req.URL)
|
|
| 86 | 86 |
} |
| 87 | 87 |
auth := req.Header.Get(registry.AuthHeader) |
| 88 | 88 |
if auth == "NotValid" {
|
| ... | ... |
@@ -92,7 +92,7 @@ func TestImagePullWithPrivilegedFuncNoError(t *testing.T) {
|
| 92 | 92 |
}, nil |
| 93 | 93 |
} |
| 94 | 94 |
if auth != "IAmValid" {
|
| 95 |
- return nil, fmt.Errorf("Invalid auth header : expected %s, got %s", "IAmValid", auth)
|
|
| 95 |
+ return nil, fmt.Errorf("invalid auth header: expected %s, got %s", "IAmValid", auth)
|
|
| 96 | 96 |
} |
| 97 | 97 |
query := req.URL.Query() |
| 98 | 98 |
fromImage := query.Get("fromImage")
|
| ... | ... |
@@ -97,7 +97,7 @@ func TestImagePushWithPrivilegedFuncNoError(t *testing.T) {
|
| 97 | 97 |
}, nil |
| 98 | 98 |
} |
| 99 | 99 |
if auth != "IAmValid" {
|
| 100 |
- return nil, fmt.Errorf("Invalid auth header : expected %s, got %s", "IAmValid", auth)
|
|
| 100 |
+ return nil, fmt.Errorf("invalid auth header: expected %s, got %s", "IAmValid", auth)
|
|
| 101 | 101 |
} |
| 102 | 102 |
query := req.URL.Query() |
| 103 | 103 |
tag := query.Get("tag")
|
| ... | ... |
@@ -81,7 +81,7 @@ func TestImageSearchWithPrivilegedFuncNoError(t *testing.T) {
|
| 81 | 81 |
}, nil |
| 82 | 82 |
} |
| 83 | 83 |
if auth != "IAmValid" {
|
| 84 |
- return nil, fmt.Errorf("Invalid auth header : expected 'IAmValid', got %s", auth)
|
|
| 84 |
+ return nil, fmt.Errorf("invalid auth header: expected 'IAmValid', got %s", auth)
|
|
| 85 | 85 |
} |
| 86 | 86 |
query := req.URL.Query() |
| 87 | 87 |
term := query.Get("term")
|
| ... | ... |
@@ -37,7 +37,7 @@ func TestPluginPush(t *testing.T) {
|
| 37 | 37 |
} |
| 38 | 38 |
auth := req.Header.Get(registry.AuthHeader) |
| 39 | 39 |
if auth != "authtoken" {
|
| 40 |
- return nil, fmt.Errorf("invalid auth header : expected 'authtoken', got %s", auth)
|
|
| 40 |
+ return nil, fmt.Errorf("invalid auth header: expected 'authtoken', got %s", auth)
|
|
| 41 | 41 |
} |
| 42 | 42 |
return &http.Response{
|
| 43 | 43 |
StatusCode: http.StatusOK, |